Ronald J. Yacketta wrote:
>
>
> Michael DeHaan wrote:
>> Ronald J. Yacketta wrote:
>>   
>>> Ok,
>>>
>>> Any thought son the mod_python error?
>>>     
>>
>>
>> Cobbler's mod_python component is trying to connect to cobblerd using 
>> the server value contained in /etc/cobbler/settings.    It's unable to 
>> do so given the way you have Apache set up.
>>
>> In a stock Apache configuration, this problem will not exist.
>>
>> Cobbler's mod_python aspects are required for operation.  It may be as 
>> simple as changing the server address.
>>
>>
>>
>>   
> The "server:" setting in cobbler is the IP of the VLAN interface which 
> resolves to eden.manage.potsdam.edu. The same IP has been assigned to 
> listen in httpd.conf
>
> >From what I can gather, apache is listening on the ip (port 80, 443) 
> of eden.manage.potsdam.edu as well as cobbler.

 From scripts/services.py (the mod_python handler from the source checkout)

    # instantiate a CobblerWeb object
    cw = CobblerSvc(
         apache   = apache,
         server   = "http://127.0.0.1:%s/cobbler_api"; % http_port
    )


It seems to be unable to connect to 127.0.0.1.

Cobbler's Apache config file (cobbler.conf in /etc/httpd/conf.d) proxies 
these as follows:


ProxyPass /cobbler_api http://localhost:25151/
ProxyPassReverse /cobbler_api http://localhost:25151/

ProxyPass /cobbler_api_rw http://localhost:25152/
ProxyPassReverse /cobbler_api_rw http://localhost:25152/

It may be that "localhost" is the problem and you may want to change it.

There is also a selinux boolean about allowing apache to connect out but 
"cobbler check" will report if that is ever a problem.

--Michael



>
>>>> Also,
>>>> has anyone ran into the following error when setting up the cobbler 
>>>> server to be on 3 VLAN's and restricting apache to Listen to a 
>>>> specific IP?
>>>>
>>>> [Wed Oct 08 10:52:48 2008] [error] field op
>>>> [Wed Oct 08 10:52:48 2008] [error] adding op to ks
>>>> [Wed Oct 08 10:52:48 2008] [error] field profile
>>>> [Wed Oct 08 10:52:48 2008] [error] adding profile to f9-i386
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] mod_python 
>>>> (pid=29995, interpreter='eden.potsdam.edu', phase='PythonHandler', 
>>>> handler='services'): Application error
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] 
>>>> ServerName: 'eden.potsdam.edu'
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] 
>>>> DocumentRoot: '/var/www/html'
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] URI: 
>>>> '/cblr/svc/op/ks/profile/f9-i386'
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] Location: None
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] Directory: 
>>>> '/var/www/cobbler/svc/'
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] Filename: 
>>>> '/var/www/cobbler/svc/op'
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] PathInfo: 
>>>> '/ks/profile/f9-i386'
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] Traceback 
>>>> (most recent call last):
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, 
>>>> in HandlerDispatch\n    default=default_handler, arg=req, 
>>>> silent=hlist.silent)
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, 
>>>> in _process_target\n    result = _execute_target(config, req, object, 
>>>> arg)
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, 
>>>> in _execute_target\n    result = object(arg)
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/var/www/cobbler/svc/services.py", line 86, in handler\n    content 
>>>> = func( **form )
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/site-packages/cobbler/services.py", line 76, in 
>>>> ks\n    self.__xmlrpc_setup()
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/site-packages/cobbler/services.py", line 61, in 
>>>> __xmlrpc_setup\n    self.remote.update()
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/xmlrpclib.py", line 1150, in __call__\n    return 
>>>> self.__send(self.__name, args)
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request\n    
>>>> verbose=self.__verbose
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/xmlrpclib.py", line 1186, in request\n    
>>>> self.send_content(h, request_body)
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/xmlrpclib.py", line 1300, in send_content\n    
>>>> connection.endheaders()
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/httplib.py", line 856, in endheaders\n    
>>>> self._send_output()
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/httplib.py", line 728, in _send_output\n    
>>>> self.send(msg)
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/httplib.py", line 695, in send\n    self.connect()
>>>> [Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33]   File 
>>>> "/usr/lib/python2.5/httplib.py", line 679, in connect\n    raise 
>>>> socket.error, msg
>>>> *[Wed Oct 08 10:52:48 2008] [error] [client 137.143.212.33] error: 
>>>> (111, 'Connection refused')
>>>>
>>>> *-Ron
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> cobbler mailing list
>>>> [email protected]
>>>> https://fedorahosted.org/mailman/listinfo/cobbler
>>>>   
>>>>       
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> cobbler mailing list
>>> [email protected]
>>> https://fedorahosted.org/mailman/listinfo/cobbler
>>>   
>>>     
>>
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to