]>
git.llucax.com Git - software/pymin.git/log
Leandro Lucarella [Sun, 18 Nov 2007 18:12:57 +0000 (15:12 -0300)]
Use procman.restart() to restart vrrp service.
Leandro Lucarella [Sun, 18 Nov 2007 18:12:07 +0000 (15:12 -0300)]
Add ProcessManager.restart() method to block until the restart is done.
Leandro Lucarella [Sun, 18 Nov 2007 05:53:14 +0000 (02:53 -0300)]
Add logging to pymin.services.vrrp module.
Leandro Lucarella [Sun, 18 Nov 2007 05:53:06 +0000 (02:53 -0300)]
Add logging to pymin.services.vpn module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:58 +0000 (02:52 -0300)]
Add logging to pymin.services.proxy module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:52 +0000 (02:52 -0300)]
Add logging to pymin.services.ppp module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:41 +0000 (02:52 -0300)]
Add logging to pymin.services.nat module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:33 +0000 (02:52 -0300)]
Add logging to pymin.services.ip module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:22 +0000 (02:52 -0300)]
Add logging to pymin.services.firewall module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:13 +0000 (02:52 -0300)]
Add logging to pymin.services.dns module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:03 +0000 (02:52 -0300)]
Add logging to pymin.services.dhcp module.
Leandro Lucarella [Sun, 18 Nov 2007 05:51:10 +0000 (02:51 -0300)]
Add logging to pymin.services.util module.
Leandro Lucarella [Sat, 17 Nov 2007 22:40:13 +0000 (19:40 -0300)]
Add logging to pymin.dispatcher module.
Leandro Lucarella [Sat, 17 Nov 2007 22:39:52 +0000 (19:39 -0300)]
Improve logging format.
Leandro Lucarella [Sat, 17 Nov 2007 22:31:32 +0000 (19:31 -0300)]
Use %r instead of %s for logging.
Leandro Lucarella [Fri, 16 Nov 2007 19:50:12 +0000 (16:50 -0300)]
Add basic initial logging support.
Federico Cuello [Tue, 13 Nov 2007 02:06:03 +0000 (23:06 -0300)]
qos implementation (working)
Federico Cuello [Tue, 13 Nov 2007 01:16:19 +0000 (22:16 -0300)]
qos template fixes
Leandro Lucarella [Sun, 18 Nov 2007 02:38:21 +0000 (23:38 -0300)]
Remove ReturnNot0Error, use subprocess.check_call instead.
Leandro Lucarella [Fri, 16 Nov 2007 19:50:12 +0000 (16:50 -0300)]
Add basic initial logging support.
Leandro Lucarella [Thu, 15 Nov 2007 12:59:40 +0000 (09:59 -0300)]
Use procman to manage vrrp service.
Leandro Lucarella [Thu, 15 Nov 2007 12:58:57 +0000 (09:58 -0300)]
Bugfix: raise a KeyError, don't return it.
Leandro Lucarella [Thu, 15 Nov 2007 12:58:20 +0000 (09:58 -0300)]
Bugfix: call ProcessInfo.stop() in the right way (without parameters).
Leandro Lucarella [Thu, 15 Nov 2007 12:57:34 +0000 (09:57 -0300)]
Bugfix: use self instead of an unbinded pi object when killing a process.
Leandro Lucarella [Wed, 14 Nov 2007 15:27:43 +0000 (12:27 -0300)]
Merge commit 'scm/master'
Leandro Lucarella [Wed, 14 Nov 2007 15:26:39 +0000 (12:26 -0300)]
Merge commit 'nico-baryon/master'
Leandro Lucarella [Tue, 13 Nov 2007 19:25:45 +0000 (16:25 -0300)]
Remove unused ProcessInfo.last_return attribute.
Leandro Lucarella [Tue, 13 Nov 2007 18:24:17 +0000 (15:24 -0300)]
Bugfix: use correct module for simbol ECHILD.
Leandro Lucarella [Tue, 13 Nov 2007 18:22:10 +0000 (15:22 -0300)]
Handle SIGCHLD in PyminDaemon.
Leandro Lucarella [Tue, 13 Nov 2007 17:18:53 +0000 (14:18 -0300)]
Add a global ProcessManager instance and functions to procman module.
Leandro Lucarella [Tue, 13 Nov 2007 03:54:06 +0000 (00:54 -0300)]
Merge branch 'procman' of baryon.com.ar:/home/luca/pymin into procman
Conflicts:
pymin/procman.py
nothing to commit (working directory clean)
Leandro Lucarella [Tue, 13 Nov 2007 02:42:59 +0000 (23:42 -0300)]
Implement timer in PyminDaemon using EventLoop signal handling.
Leandro Lucarella [Tue, 13 Nov 2007 00:58:04 +0000 (21:58 -0300)]
Support general signals handling in EventLoop.
Now the EventLoop has no support for timers but have general signals
handling support. Signals to be handled can be specified in the constructor
or by calling set_signal() method. Stop handling a particular type of
signals is supported too by calling to the unset_signal() method.
A callback can be specified for each type of signal, or all signal handling
can be done in the handle_signal() method, if overriden by EventLoop
subclasses.
Leandro Lucarella [Mon, 12 Nov 2007 23:51:31 +0000 (20:51 -0300)]
Replace time.sleep() for signal.pause() in the ProcessManager test.
Leandro Lucarella [Mon, 12 Nov 2007 20:01:06 +0000 (17:01 -0300)]
Improve ProcessManager to manage registerable named services.
Besides call, now ProcessManager can register (and unregister) named
services. Once registered, they can be started and stopped (or killed if
multiple stop are issued before the process actually dies) at will, just
like regular processes. Processes can be signaled too.
Documentation is still missing.
Leandro Lucarella [Mon, 12 Nov 2007 17:00:26 +0000 (14:00 -0300)]
Add a ProcessManager class to manage processes.
Leandro Lucarella [Tue, 13 Nov 2007 02:58:27 +0000 (23:58 -0300)]
Fix config file and DEBUG settings for testing.
Federico Cuello [Tue, 13 Nov 2007 02:06:03 +0000 (23:06 -0300)]
qos implementation (working)
Federico Cuello [Tue, 13 Nov 2007 01:16:19 +0000 (22:16 -0300)]
qos template fixes
Leandro Lucarella [Mon, 12 Nov 2007 20:01:06 +0000 (17:01 -0300)]
Improve ProcessManager to manage registerable named services.
Besides call, now ProcessManager can register (and unregister) named
services. Once registered, they can be started and stopped (or killed if
multiple stop are issued before the process actually dies) at will, just
like regular processes. Processes can be signaled too.
Documentation is still missing.
Leandro Lucarella [Mon, 12 Nov 2007 17:00:26 +0000 (14:00 -0300)]
Add a ProcessManager class to manage processes.
Leandro Lucarella [Mon, 12 Nov 2007 16:54:52 +0000 (13:54 -0300)]
Add a small utility to send pymin commands.
Nicolas Emiliani [Mon, 12 Nov 2007 16:16:48 +0000 (13:16 -0300)]
Merge or3st3s@baryon.com.ar:workspace/pymin
Nicolas Emiliani [Mon, 12 Nov 2007 16:14:24 +0000 (13:14 -0300)]
VpnHandler bugfixes.
Nicolas Emiliani [Mon, 12 Nov 2007 16:01:36 +0000 (13:01 -0300)]
Bug fix for the vpn --net=<VPN> fixed
Nicolas Emiliani [Mon, 12 Nov 2007 15:33:45 +0000 (12:33 -0300)]
Added Mode=switch to tinc.conf template.
This causes the created device to appear as link/ether
or3st3s [Mon, 12 Nov 2007 12:32:06 +0000 (12:32 +0000)]
Merge branch 'master' into suse
Nicolas Emiliani [Mon, 12 Nov 2007 13:43:20 +0000 (10:43 -0300)]
Merge branch 'master' into suse
Nicolas Emiliani [Mon, 12 Nov 2007 13:42:29 +0000 (10:42 -0300)]
Hack for DNS timer_handle added.
The hack consists in redifinig de timer_handle because
the generic one that was used to check if the process was running
returned a pid that did not belong with the process wanted (named),
that was due to teh fact that named is in a path used to execute
an option of the syslog deamon.
Nicolas Emiliani [Mon, 12 Nov 2007 13:38:53 +0000 (10:38 -0300)]
VpnHandler export added.
Nicolas Emiliani [Mon, 12 Nov 2007 13:36:33 +0000 (10:36 -0300)]
Make up.
Nicolas Emiliani [Mon, 12 Nov 2007 13:28:12 +0000 (10:28 -0300)]
Fixes, VPN handler added and qos handler commented till it's fixed.
or3st3s [Mon, 12 Nov 2007 11:01:36 +0000 (11:01 +0000)]
Vpn Handler added to config.py.
Leandro Lucarella [Sun, 11 Nov 2007 20:00:41 +0000 (17:00 -0300)]
Bugfix: InitdHandler.timer_handler() had undefined variables.
Nicolas Emiliani [Sat, 10 Nov 2007 19:56:14 +0000 (16:56 -0300)]
Merge baryon.com.ar:workspace/pymin
Conflicts:
config.py
Nicolas Emiliani [Sat, 10 Nov 2007 19:48:52 +0000 (16:48 -0300)]
VPN support added.
Federico Cuello [Tue, 6 Nov 2007 18:45:37 +0000 (15:45 -0300)]
qos implementation fixes
Nicolas Emiliani [Tue, 6 Nov 2007 18:15:42 +0000 (15:15 -0300)]
Se agregan try y catch al _write_config del iphandler
Federico Cuello [Tue, 6 Nov 2007 03:47:32 +0000 (00:47 -0300)]
qos implementation
Leandro Lucarella [Mon, 5 Nov 2007 14:31:10 +0000 (11:31 -0300)]
Bugfix: add noauth and change name for user in ppp template.
Leandro Lucarella [Mon, 5 Nov 2007 14:30:39 +0000 (11:30 -0300)]
Bugfix: remove wrong poff command call in ppp handler.
Leandro Lucarella [Mon, 5 Nov 2007 14:30:16 +0000 (11:30 -0300)]
Move Device and Address to services.util and add ppp peer IPs.
Leandro Lucarella [Mon, 29 Oct 2007 02:08:10 +0000 (23:08 -0300)]
Add a default handle_timer() method to InitdHandler that checks the daemon pid.
This is to provide a more accurate running command. It can be extended to
provide a "persist" option to restart the service when it's down.
Leandro Lucarella [Sat, 27 Oct 2007 20:52:07 +0000 (17:52 -0300)]
Merge jack2@192.168.7.8:src/pymin
Leandro Lucarella [Sat, 27 Oct 2007 20:50:29 +0000 (17:50 -0300)]
Add a timer handler to ppp to monitor ppp connections state.
Leandro Lucarella [Sat, 27 Oct 2007 20:44:53 +0000 (17:44 -0300)]
Excecute the timer at startup if enabled.
Leandro Lucarella [Sat, 27 Oct 2007 18:48:24 +0000 (15:48 -0300)]
Removed 'ip addr update' command since it has not much sense.
jack2 [Sat, 27 Oct 2007 17:45:19 +0000 (14:45 -0300)]
Merge branch 'master' of or3st3s@baryon.com.ar:workspace/pymin into suse
Conflicts:
config.py
Nicolas Emiliani [Thu, 25 Oct 2007 14:54:54 +0000 (11:54 -0300)]
Verificacion de interfaces usando handle_timer().
En util.py se corrige get_network_devices para que
levante los link/ppp.
En ip/__init__.py se agrega refresh_devices para que
a travez del handle_timer se puedan agregar los devices
que se registran a travez del commando ppp y tambien
se borren los devices caidos.
Leandro Lucarella [Thu, 25 Oct 2007 03:30:21 +0000 (00:30 -0300)]
Update TODO list.
Leandro Lucarella [Wed, 24 Oct 2007 20:41:28 +0000 (17:41 -0300)]
Add support for a simple timer to do periodic tasks.
Base support is on EventLoop, who handles the timer
life and calls handle_timer() when the timer is
expired. dispatcher.Handler has a simple default
handle_timer() implementation that just promote the
"handle_timer message" to all subhandlers, while
PyDaemon just start "spreading the voice" by calling
the root handler handle_timer() method.
root [Mon, 22 Oct 2007 20:30:53 +0000 (17:30 -0300)]
Merge branch 'master' into suse
Leandro Lucarella [Mon, 22 Oct 2007 16:15:19 +0000 (13:15 -0300)]
Rearrange service startup order.
Leandro Lucarella [Mon, 22 Oct 2007 16:11:43 +0000 (13:11 -0300)]
Merge commit 'nico-baryon/master'
Conflicts:
pymin/services/ppp/__init__.py
pymin/services/vrrp/__init__.py
Leandro Lucarella [Mon, 22 Oct 2007 05:46:53 +0000 (02:46 -0300)]
Add support for service running status and restoring at startup.
Now ServiceHandler stores a persistent status of the service, to know if
the service should be started at startup (or reloaded when reload command
is called). To do that it inherits from Restorable, so restarting and
committing is now not done at _restore() any more. InetdHandler now
inherits from ServiceHandler to take advantage of its features.
ServiceHandler now support callables _service_{start,stop,restart,reload}
attributes to ease the customization.
PppHandler is a special case where each connection has it own running
status. All start, stop, restart and reload takes the name argument as
optional. If a name is not provided, all connections are processed. On
restart, all connections are (re)started, on reload (and at startup), only the previous
running connectinos are restarted.
ConfigWriter's _write_config() now can return True to indicate that commit
command shouldn't reload the service.
VrrpHandler now uses python's kill to stop the service.
Leandro Lucarella [Mon, 22 Oct 2007 05:32:42 +0000 (02:32 -0300)]
Bugfix: _dict_* should be _cont_* and _persistent_attrs should be a list.
Leandro Lucarella [Mon, 22 Oct 2007 05:29:48 +0000 (02:29 -0300)]
Add support "operation tagging" to ParametersHandler.
Now if a ParametersHandler instance has an attribute _update, it will be
changes to True when the set command is called.
Leandro Lucarella [Mon, 22 Oct 2007 04:07:43 +0000 (01:07 -0300)]
Bugfix: _persistent_attrs should be a sequence.
Fede [Mon, 22 Oct 2007 01:47:27 +0000 (22:47 -0300)]
Cambios ppp.
Se modifican parametros de los templates.
Se ambian prints por calls.
Fede [Sun, 21 Oct 2007 21:46:34 +0000 (18:46 -0300)]
Se corrigen el nombre del pid file y se camban prints por calls.
Fede [Sun, 21 Oct 2007 21:44:16 +0000 (18:44 -0300)]
Se agrega el POLICY al script para que el NAMED no se queje.
Fede [Sun, 21 Oct 2007 21:46:34 +0000 (18:46 -0300)]
Se corrigen el nombre del pid file y se camban prints por calls.
Fede [Sun, 21 Oct 2007 21:44:16 +0000 (18:44 -0300)]
Se agrega el POLICY al script para que el NAMED no se queje.
Fede [Sun, 21 Oct 2007 21:42:14 +0000 (18:42 -0300)]
Mod de los parametros de inicializacion de vrrp.
Leandro Lucarella [Fri, 19 Oct 2007 19:23:06 +0000 (16:23 -0300)]
Remove implemented items from TODO.
Fede [Thu, 18 Oct 2007 00:41:50 +0000 (21:41 -0300)]
Don't run in DEBUG mode (but print call() calls).
Fede [Thu, 18 Oct 2007 00:41:03 +0000 (21:41 -0300)]
Merge branch 'master' into suse
Fede [Thu, 18 Oct 2007 00:40:28 +0000 (21:40 -0300)]
Make real calls (remove prints).
Fede [Thu, 18 Oct 2007 00:39:25 +0000 (21:39 -0300)]
Alias reload to restart in DhcpHandler (init.d script don't have reload).
Fede [Wed, 17 Oct 2007 23:18:19 +0000 (20:18 -0300)]
Merge branch 'master' into suse
Fede [Wed, 17 Oct 2007 23:07:04 +0000 (20:07 -0300)]
Inherit errors from HandlerError.
Fede [Wed, 17 Oct 2007 22:59:22 +0000 (19:59 -0300)]
Specific Suse configuration.
Fede [Wed, 17 Oct 2007 22:44:03 +0000 (19:44 -0300)]
Merge ../t/pymin/
Conflicts:
pymin/services/ip/__init__.py
Leandro Lucarella [Tue, 16 Oct 2007 03:28:36 +0000 (00:28 -0300)]
Remove unused error classes.
Leandro Lucarella [Tue, 16 Oct 2007 03:28:21 +0000 (00:28 -0300)]
Add ComposedSubHandler (and their List and Dict flavors) to services.util.
Add a class to handle List and Dict subhandlers contained in another
parent object. DnsHandler and IpHandler are updated to use them.
get_devices() function was "promoted" to services.util too, with a little
signature change.
Leandro Lucarella [Tue, 16 Oct 2007 03:25:17 +0000 (00:25 -0300)]
Bugfix: catch LookupErrors instead of IndexError in ContainerSubHandler.
Leandro Lucarella [Tue, 16 Oct 2007 03:22:59 +0000 (00:22 -0300)]
Add a default __cmp__() implementation to pymin.seqtool.Sequence.
Leandro Lucarella [Tue, 16 Oct 2007 00:02:34 +0000 (21:02 -0300)]
Add a clear() method to ContainerSubHandler to remove all the items.
Leandro Lucarella [Tue, 16 Oct 2007 00:02:06 +0000 (21:02 -0300)]
Use more consistent getter name in ContainerSubHandler.
Now the method to access to the container attribute is named _attr() (and
_vattr) instead of _cont() (and _vcont). The method accept now an optional
'attr' argument to act as a setter.
Leandro Lucarella [Mon, 15 Oct 2007 05:22:06 +0000 (02:22 -0300)]
Add NatHandler to handle NAT (port forwarding, snating and masquerading).