Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-gtools / synnefo / ganeti / eventd.py @ dc7159be

History | View | Annotate | Download (16.7 kB)

# Date Author Comment
4b7fbdc6 12/23/2013 04:32 pm Christos Stavrakakis

gtools: Send messages only for cluster changes

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...

b2272468 11/22/2013 02:38 pm Christos Stavrakakis

cyclades: Add name to Ganeti NICs

Add 'name' attribute to newly created NICs. Currently, the name of the
NICs will not be used to refer to NICs, as it will be in Synnefo 0.15.
Names are added only to ease the migration to version 0.15. Also, this
commit updates snf-dispatcher to preserve the name of the NIC, if any,...

ffc4b474 11/18/2013 07:24 pm Christos Stavrakakis

eventd: Fix using attribute from wrong module

'CLUSTER_CONF_FILE' attribute belongs to 'ganeti.pathutils' and not
'ganeti.constants'.

3bac1e87 11/18/2013 06:52 pm Christos Stavrakakis

gtools: Add ganeti to python path

Modify snf-ganeti-eventd to explicitly add '/usr/share/ganeti' to it's
path. This is needed because since Ganeti 2.7, Ganeti debian package
ships the majority of the python code as a private module under
'/usr/share/ganeti'.

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...

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...

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

cyclades: Fix compatibility issues with networks

From version 2.7, Ganeti returns the network's UUID field in nics
'networks' attribute. Instead use 'networks.names' attribute to get
the network name.

2b4becab 11/11/2013 03:28 pm Christos Stavrakakis

gtools: Fix compatibility issues with ganeti-2.7

  • SimpleConfigReader has been removed. Use SimpleStore
  • QUEUE_DIR has been moven from ganeti.constants to ganeti.pathutils
  • _QueuedJob.Restore takes 2 more arguments
  • cyclades: Group info is returned as list instead of string
d0545590 10/09/2013 11:40 am Christos Stavrakakis

cyclades: Use NIC UUID in firewall tags

Use NICs UUID instead of index to generate firewall tags. Make the
'set_firewall_profile' action to take the NICs ID as argument. Also,
update the firewall settings.

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

eventd: Do not send NICs twice

Fix bug introduced by rebasing, which resulted in NICs to be
sent twice.

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.

220e3cc0 10/09/2013 11:40 am Christos Stavrakakis

gtools: Make snf-ganeti-eventd send NIC names

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

Fix compatibility issues with ganeti-2.7

  • SimpleConfigReader has been removed. Use SimpleStore
  • QUEUE_DIR has been moven from ganeti.constants to ganeti.pathutils
  • _QueuedJob.Restore takes 2 more arguments
  • Group info is returned as list instead of string
32e2716a 10/09/2013 11:40 am Christos Stavrakakis

gtools: Fix compatibility issues with networks

From version 2.7, Ganeti returns the network's UUID field in nics
'networks' attribute. Instead use 'networks.names' attribute to get
the network name.

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....
90858bda 09/10/2013 03:29 pm Christos Stavrakakis

cyclades: Update NICs even if job failed

Make snf-ganeti-eventd send the NICs of the instance not only on
success, but also if the job has failed or has been canceled. Also,
update snf-dispatcher to handle those messages. This step is required to
clear BUILDING NICs that fail.

12ee1ad8 07/02/2013 12:31 pm Christos Stavrakakis

gtools: Make eventd send beparams and result

Update 'snf-ganeti-eventd' daemon to send the requested beparams in
case of 'OP_INSTANCE_SET_PARAMS' opcodes. Also, if the opcode is
in success state, send the 'result' attribute of Ganeti jobs.

Refs #3870

449787d3 05/14/2013 01:25 pm Christos Stavrakakis

eventd: pep8 fixes

6df16263 05/14/2013 01:25 pm Christos Stavrakakis

gtools: Handle case of eventd not in master

Handle the case the 'snf-ganeti-eventd' is not running in Ganeti master
node, but in a master candidate. In such a case, we can not get a Ganeti
client. Until Ganeti conf daemon is implemented, we manually load and...

0e1f3323 05/14/2013 01:25 pm Christos Stavrakakis

gtools: Make eventd send instance NICs

Update eventd daemon to get the instance NICs by querying Ganeti and
send them to Cyclades.

a8858945 11/22/2012 01:24 pm Christos Stavrakakis

Make amqp_puka get logger as argument

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.

e66a7e34 11/01/2012 01:24 pm Christos Stavrakakis

Get Ganeti cluster name from ssconf

Modify snf-ganeti-eventd in order to get the name of the Ganeti cluster
from shared configuration files (ssconf) instead of performing a LUXI query.
Performing a LUXI restricts eventd to run only on the master node.

2ef10562 10/08/2012 02:30 pm Christos Stavrakakis

Change eventd and dispatcher AMQP retries

Set unlimited connection retries to AMQP hosts for snf-ganeti-eventd,
since death of snf-ganeti-eventd results in loss of events.
Also increase retries of snf-dispatcher.

765ff3ff 09/28/2012 01:21 pm Christos Stavrakakis

Fix None timestamp in eventd messages

Send the job timestamp when an opcode does not have a timestamp.

1dc821c9 09/21/2012 04:28 pm Christos Stavrakakis

Change process title to simplify 'ps' display

Use python-setproctitle to change the process title of the running
daemon. Make it appear as a native executable to simplify
administration. Only set executable name, because cannot set individual
values for arguments.

f2ccb23e 09/18/2012 10:23 am Christos Stavrakakis

Fix no-time in eventd messages

Ganeti opcodes may not have an end-timestamp when they go to
an error state. In that case send the job end-timestamp.

51fc0054 07/27/2012 03:13 pm Christos Stavrakakis

Get cluster name from Ganeti

Query Ganeti for getting the cluster name, instead of reading the
ssconf files.

996e5d53 07/25/2012 04:49 pm Christos Stavrakakis

Fix AMQP bug in snf-progress-monitor

27a8e4ae 07/23/2012 11:36 am Christos Stavrakakis

Send cluster name from snf-ganeti-eventd

cf2a3529 07/16/2012 11:19 am Christos Stavrakakis

Remove stale pid lockfiles on daemon invocation

b85320d0 07/02/2012 05:56 pm Christos Stavrakakis

Reduce confirm buffer size of snf-ganeti-eventd

db400d82 06/29/2012 01:38 pm Christos Stavrakakis

Refactor AMQP client

39ccdb18 06/06/2012 05:10 pm Christos Stavrakakis

Refactor snf-ganeti-eventd

Refactor snf-ganeti-eventd to make easier differenet handling of opcodes

Fix version compotability issues with ganeti

07e4ab22 06/06/2012 05:10 pm Christos Stavrakakis

Filter messages sent from snf-ganeti-eventd

Do not publish messages for jobs concerning no or multiple instances,
since snf-dispatcher can not normally handle them.

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...

4ed30eed 05/29/2012 01:03 pm Christos Stavrakakis

Fix eventd ad ganeti version compatibility

a31e427d 01/30/2012 06:51 pm Kostas Papadimitriou

Rename snf-ganeti-tools to snf-cyclades-gtools