re: restart minions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dnia 2008-11-11, wto o godzinie 17:14 -0800, func@xxxxxxxxxxxxx pisze:
> You can try running this in async mode..

Thanks for the tip, however, it doesn't seem to work (assuming I am doing things correctly).  On my overlord, I modified /etc/func/async_methods.conf as:

   [main]
   force_async = command.run, yumcmd.update, virt.install, service.restart

Then restarted funcd on the overlord.  Then I ran the service restart on a minion and the minion exited and attempted a restart only to receive a port in use error:

Traceback (most recent call last):
  File "/usr/bin/funcd", line 23, in ?
    server.main(sys.argv)
  File "/usr/lib/python2.4/site-packages/func/minion/server.py", line 257, in main
    serve()
  File "/usr/lib/python2.4/site-packages/func/minion/server.py", line 155, in serve
    server =FuncSSLXMLRPCServer(('', 51234))
  File "/usr/lib/python2.4/site-packages/func/minion/server.py", line 190, in __init__
    self.ca)
  File "/usr/lib/python2.4/site-packages/func/minion/AuthedXMLRPCServer.py", line 73, in __init__
    SimpleXMLRPCServer.SimpleXMLRPCServer.__init__(self, address, AuthedSimpleXMLRPCRequestHandler)
  File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 473, in __init__
    SocketServer.TCPServer.__init__(self, addr, requestHandler)
  File "/usr/lib/python2.4/SocketServer.py", line 330, in __init__
    self.server_bind()
  File "/usr/lib/python2.4/SocketServer.py", line 341, in server_bind
    self.socket.bind(self.server_address)
  File "<string>", line 1, in bind
socket.error: (98, 'Address already in use')

If I restart the minion from the host's console, it works but not remotely.  Perhaps funcd requires a special case to handle restarting minion(s)?  Another option, I suppose would be to enable Monit on each minion to ensure that the funcd process is always restarted but that requires additional installation and configuration on each minion.

Phil

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux