Statistics
| Branch: | Tag: | Revision:

root / db / db_controller.py @ 5d081749

History | View | Annotate | Download (8.1 kB)

# Date Author Comment
5d081749 05/02/2011 05:03 pm Georgios Gousios

Dynamic configuration of queues from settings.py

This commit enables test users to bind arbitrary functions in response
to queued messages, using the topic queue pattern

http://www.rabbitmq.com/tutorials/tutorial-five-python.html

refs: #393

f30730c0 05/02/2011 02:22 pm Georgios Gousios

Support for deleting existing queues

78e2d194 05/02/2011 01:14 pm Georgios Gousios

Refactored to a class, prepare for multiprocessing

fde763c3 05/02/2011 10:13 am Georgios Gousios

Init more queues

8d8ea051 04/28/2011 04:15 pm Georgios Gousios

Convert db_controller to a generic event consumer

Will also rename the program, as it will act as system's generic event
dispatcher. Event and event handler bindings are static for now, but
this will problably change.

da102335 04/28/2011 02:12 pm Georgios Gousios

Remove 0mq based code

dac67c0a 04/18/2011 10:45 pm Vangelis Koukis

Refactor ganeti-0mqd as daemon, message broker

Refactor ganeti-0mqd to run as a UNIX daemon: * Log under /var/log/synnefo by default * Maintain PID file under /var/run/synnefo * Handle signals gracefully

Refactor ganeti-0mqd to be a 0mq message broker:...

234f8b07 03/31/2011 01:43 pm Vangelis Koukis

Fix breakage caused by the logic-refactoring merge

This commit fixes some breakage caused by the recent merge of
the logic-refactoring branch, mainly related to db/db_controller.py.

The main reason was the different value of import path, fixed by
making sure all imports are rooted in synnefo....

c63e332f 03/28/2011 06:41 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

Conflicts:
db/db_controller.py

c7b808db 03/28/2011 04:21 pm Dimitris Moraitis

move GANETI_ZMQ_PUBLISHER option to settings

02feca11 03/22/2011 07:21 pm Vassilios Karakoidas

Move process_backend_msg to beckend.py

e3a99a08 03/22/2011 06:57 pm Vassilios Karakoidas

Moved id_from_instance_name static method to utils.py

a5c17ad3 03/17/2011 03:49 am Dimitris Moraitis

fix settings import

c58091a6 03/03/2011 06:49 pm Vangelis Koukis

Fix db/db_controller.py bug triggering 0mq bug

Fix db/db_controller.py bug triggering 0mq assertion failure
in ganeti-0mqd, by forcing unique ZMQ_IDENTITY strings for each
db_controller instance.

The identity string is built using the hostname where db_controller...

c92af313 02/22/2011 03:41 pm Vangelis Koukis

Minor fixes in VM model and db_controller.py

Added comments for VirtualMachine attributes pertaining
to internal operating state (ACTIONS, OPER_STATES, etc.).

Minor fixes in db_controller.py.

5db87ed5 02/15/2011 01:21 am Vangelis Koukis

Make ZMQ thread in db_controller stoppable.

Make db_controller run all 0mq operations in a separate StoppableThread
with a stop() method. The main thread calls it, then publishes on an in-proc
PUB socket to interrupt any zmq_recv() call and join the thread when cleaning...

78d9b6b7 02/10/2011 06:42 pm Vangelis Koukis

Private fields in VM model, updated fixtures

Updated names of fields pertaining to VM state in VirtualMachine model,
updated fixtures.

database.sqlite can be removed, use:

rm database.sqlite; python manage.py syncdb

to recreate it from fixtures.

21f59a5d 02/10/2011 12:35 pm Vangelis Koukis

Use zmq_recv() in dedicated thread in db_controller.

It seems Python can only do signal processing in the main thread.
If the main thread calls zmq_recv(), no exceptions get raised
when a SIGINT is received for example.

WIP:
This moves the zmq_recv() to a separate thread, while the main...

86221fd5 02/09/2011 09:31 am Panos Louridas

Fix path issue.

d08a5f6f 02/08/2011 11:32 pm Vangelis Koukis

What commit b4141604 should have contained.

The proper contents of commit b4141604 are included here.


d7c1ed72 02/05/2011 09:18 pm Vassilios Karakoidas

rename dbcontrol and charger into proper python name