cobbler/cobbler — Issue #7: cobbler_api port does not change when the http_port has been changed (Breaks replicate)
Author: russl
Created: 2011-12-01 21:26:15+00:00
State: open

When I tried to use "cobbler replicate" it would connect to the cobbler master on port 80 with no issue. But then turned around and tried to connect to http://127.0.0.1/cobbler_api when in the /etc/cobbler/settings file I specified http_port to be different.

After changing a line in /usr/lib/python2.4/site-packages/cobbler/action_replicate.py from

self.local = xmlrpclib.Server("http://127.0.0.1/cobbler_api")
to
self.local = xmlrpclib.Server("http://127.0.0.1:2080/cobbler_api")

It worked with no issues.

I would like to see that portion of the code use a variable that is pulled from the /etc/cobbler/settings file.

I am running RPM version cobbler-2.2.1-1 on CentOS 5.6