Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / logic / callbacks.py @ 2eda9c61

History | View | Annotate | Download (12.6 kB)

# Date Author Comment
c583d487 01/29/2014 03:53 pm Christos Stavrakakis

cyclades: Make snf-dispatcher handle volumes

Update snf-dispatcher to handle messages from snf-ganeti-eventd about
the instance disks(volumes). Handling of disks is done almost exactly as
with NICs.

7bfff8a6 12/16/2013 06:55 pm Christos Stavrakakis

cyclades: Update backend only when needed

Make dispatcher ask Ganeti about the enabled/ipolicy disk templates only
after an OP_CLUSTER_SET_PARAMS. Otherwise, dispatcher will be
overwhelmed by gnt-cluster verify jobs.

7b438672 12/10/2013 02:32 pm Christos Stavrakakis

cyclades: Ignore messages about deleted resources

Ignore messages from Ganeti about servers and networks that have already
been marked as deleted in the Cyclades DB. Processing of these messages
may asynchronize Cyclades with Astakos quotas.

ee995ae2 11/26/2013 01:11 pm Christos Stavrakakis

Merge branch 'master' into develop

Conflicts:
ci/schemas/one_node_wheezy/wheezy.conf
docs/admin-guide.rst
snf-cyclades-app/synnefo/api/actions.py
snf-cyclades-app/synnefo/api/servers.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/callbacks.py...

aee560b0 11/18/2013 02:57 pm Christos Stavrakakis

cyclades: Do not retry all Ganeti failed creations

Make snf-dispatcher retry only the OP_INSTANCE_CREATE jobs that failed
due to opportunistic locking. Such jobs include the 'ECODE_TEMP_NORES'
error code in the opcode result. This commit makes snf-ganeti-eventd...

73517357 11/18/2013 12:48 pm Christos Stavrakakis

gtools: Fix Ganeti allocation parameters

When retrying a failed job, remove 'pnode' and 'snode' fields if they
were implicitly set by Ganeti iallocator. Ganeti will fail if both
iallocator and node are specified in the job.

7b4a61dc 11/18/2013 12:46 pm Christos Stavrakakis

gtools: Fix Ganeti allocation parameters

When retrying a failed job, remove 'pnode' and 'snode' fields if they
were implicitly set by Ganeti iallocator. Ganeti will fail if both
iallocator and node are specified in the job.

3a09d155 11/13/2013 11:28 am Christos Stavrakakis

Merge branch 'hotfix-0.14.10' into develop

Conflicts:
Changelog
snf-cyclades-app/synnefo/api/servers.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/callbacks.py
snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py...

727fb2f9 11/11/2013 03:29 pm Christos Stavrakakis

cyclades: Retry failed instance creation

Handle special case where an OP_INSTANCE_CREATE job which uses the
opportunistic locking feature fails. This failure is probably due to the
fact that all nodes may be already locked. In this case, make
snf-dispatcher retry the failed job with opportunistic locking turned...

66932293 11/11/2013 03:29 pm Christos Stavrakakis

cyclades: fix typo in snf-dispatcher

8d5795b4 11/06/2013 02:00 pm Christos Stavrakakis

Cyclades: Rename 'Can not' to 'Cannot' to all msgs

e6fbada1 10/09/2013 11:40 am Christos Stavrakakis

gtools: Make eventd send job fields

Make snf-ganeti-eventd send 'job_fields' for instance and network
opcodes, and modify the corresponding backend functions and
snf-dispatcher callbacks.

457cc553 10/09/2013 11:40 am Christos Stavrakakis

cyclades: fix typo in snf-dispatcher

fc56ae0f 10/07/2013 02:50 pm Christos Stavrakakis

cyclades: Do not release externally reserved IPs

Do not automatically release an externally reserved IP if it is released
from a Ganeti backend. The IP should be released with snf-manage
network-modify management commands.

73756651 10/02/2013 04:05 pm Christos Stavrakakis

cyclades: Fix bug in update_cluster callback

Decorate 'update_cluster' callback with 'handle_message_delivery' to
handle acknowledgement of messages.

e4011adc 10/01/2013 08:06 pm Christos Stavrakakis

cyclades: Fix typo

36d450e8 10/01/2013 05:45 pm Christos Stavrakakis

cyclades: Callback for cluster modifications

Extend snf-dispatcher callbacks with one to run every time an
OP_CLUSTER_ opcode is executed in a Ganeti backend.

  • make snf-ganeti-eventd send messages on cluster modifications. These
    messages do not contain any description about the job....
ca4d59e3 07/02/2013 12:31 pm Christos Stavrakakis

cyclades: Handle Ganeti msgs for resized VMs

Handle 'OP_INSTANCE_SET_PARAMS' notifications from Ganeti that have
'beparams' attribute, which corresponds to resized VMs. In such
case, the corresponding flavor is found an the VM in DB is updated to
have this flavor....

fd95834e 05/14/2013 01:25 pm Christos Stavrakakis

dispatcher: Handle NICs in callbacks.

Update 'update_db' callback to handle instance NICs together with
instance status.

Also update the relevant tests.

95059648 05/14/2013 01:25 pm Christos Stavrakakis

Remove 'snf-events-net' queue and binding

Remove 'snf-events-net' queue (together with the corresponding routing
key and binding) from the queues that snf-dispatcher is consuming
messages. This queue is no longer needed, because messages for instance
NICs will be sended by snf-ganeti-eventd to 'snf-events-op' queue....

99af08a4 05/13/2013 12:38 pm Christos Stavrakakis

cyclades: Implement lazy networks

Implement "lazy networks", which are not created to all Ganeti backends
upon creation, but only when an instance that resides in a Ganeti is
connected to that network.

Update 'create_network' to create the Network object in DB without...

cc92b70f 02/06/2013 02:18 pm Christos Stavrakakis

Fix pep8 warnings

f659cd15 01/21/2013 03:38 pm Kostas Papadimitriou

Fix progress messages handling

proper handling of missing `messages` key progress messages.

e6f6627c 12/14/2012 06:22 pm Christos Stavrakakis

Misc minor bug fixes

fdfd8c6d 11/08/2012 01:21 pm Christos Stavrakakis

Fix dispatcher logging

7f2dbcad 11/07/2012 12:52 pm Christos Stavrakakis

Use select_for_update for VirtualMachines

Use select_for_update method when accessing VM objects to prevent
race conditions. Also move start_action from logic to api.

fd2bdbb2 11/07/2012 11:04 am Christos Stavrakakis

Process OP_NETWORK_SET_PARAMS Ganeti jobs

Modify snf-ganeti-eventd and snf-dispatcher to handle jobs with
OP_NETWORK_SET_PARAMS opcode. Handling of these jobs is needed
to update the IP Pool of network, when reserving and releasing
IPs directly from the Ganeti backend.

eeffcbea 10/23/2012 04:28 pm Kostas Papadimitriou

Merge branch 'devel-0.12' into ui-0.11

b9d91e62 10/23/2012 03:07 pm Christos Stavrakakis

Use basic_reject in snf-dispatcher callbacks

Modify snf-dispatcher callbacks in order to reject messages that caused
an unknown exception. Because a dead-letter-exchange is associated
with the queues that snf-dispatcher is using, these messages will be
transfered to the dead-letter-exchange.

b16db49b 10/09/2012 04:27 pm Kostas Papadimitriou

Merge branch 'devel-0.11' into ui-0.11

Conflicts:
snf-cyclades-app/synnefo/db/models.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/ui/static/snf/js/models.js

bb80a8d7 09/28/2012 01:21 pm Christos Stavrakakis

Take care for messages without timestamp

Catch exception produced in snf-dispatcher when receiving messages without
proper timestamp.

d2e73c0c 09/27/2012 03:59 pm Christos Stavrakakis

Fix race conditions when updating network objects

Use for_update() object manager in order to exclude race conditions
when updating network objects.

6138f0ef 08/08/2012 08:28 pm Kostas Papadimitriou

Additional build progress callback handlers

Handle image-{error, info, warning, helper} messages and create the
corresponding virtual machine diagnostics.

a3b1aee2 08/06/2012 06:17 pm Nikos Skalkotos

Make dispatcher aware of the new monitoring msgs

Make dispatcher aware of image-warning and image-info messages

0827883e 08/06/2012 06:17 pm Nikos Skalkotos

Comply with the new monitoring system of snf-image

For now only the image-copy-progress messages are processed

15cb13b5 07/23/2012 11:39 am Christos Stavrakakis

Fix bug about unknown network in instance's nics

22ee6892 07/23/2012 11:39 am Christos Stavrakakis

Modification in logic for new-style networks

a17a8e98 07/23/2012 11:36 am Christos Stavrakakis

Create network queues and refactor dispatcher

33b93f81 06/06/2012 05:10 pm Christos Stavrakakis

Refactor common code in dispatcher's callbacks

9c766317 06/06/2012 05:10 pm Christos Stavrakakis

Minor fixes

f2264859 06/06/2012 05:10 pm Christos Stavrakakis

Remove unused code

Remove old code used for reconciliation, as the reconciliation mechanism has
changed

c4e55622 06/06/2012 04:56 pm Christos Stavrakakis

Update modules interacting with AMQP

Update all modules which are interacting with the RabbitMQ messaging system to
use the AMQPClient in order to use highly available queues in active/active
mode.

Extend messages to include a unique identifier in order to handle...

1ed37c1d 02/21/2012 04:13 pm Giorgos Verigakis

Remove legacy code from dispatcher

cc875294 02/02/2012 05:10 pm Giorgos Verigakis

Merge remote-tracking branch 'origin/master' into astakos-integration

Conflicts:
runtests.sh
snf-cyclades-app/synnefo/aai/__init__.py
snf-cyclades-app/synnefo/aai/fixtures/auth_test_data.json
snf-cyclades-app/synnefo/aai/middleware.py
snf-cyclades-app/synnefo/aai/models.py...

9c0ac5af 01/30/2012 06:55 pm Kostas Papadimitriou

Renamed snf-app to snf-cyclades-app