Fix compatibility issues with ganeti-2.7
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 getthe network name.
cyclades: Callback for cluster modifications
Extend snf-dispatcher callbacks with one to run every time anOP_CLUSTER_ opcode is executed in a Ganeti backend.
cyclades: Update NICs even if job failed
Make snf-ganeti-eventd send the NICs of the instance not only onsuccess, but also if the job has failed or has been canceled. Also,update snf-dispatcher to handle those messages. This step is required toclear BUILDING NICs that fail.
gtools: Make eventd send beparams and result
Update 'snf-ganeti-eventd' daemon to send the requested beparams incase of 'OP_INSTANCE_SET_PARAMS' opcodes. Also, if the opcode isin success state, send the 'result' attribute of Ganeti jobs.
Refs #3870
gtools: remove obsolete hooks
Remove obsolete hooks from Cyclades Ganeti tools. Hooks were only usedto send the notify Cyclades about the NICs of instances, which is nowperformed by eventd.
eventd: pep8 fixes
gtools: Handle case of eventd not in master
Handle the case the 'snf-ganeti-eventd' is not running in Ganeti masternode, but in a master candidate. In such a case, we can not get a Ganeticlient. Until Ganeti conf daemon is implemented, we manually load and...
gtools: Make eventd send instance NICs
Update eventd daemon to get the instance NICs by querying Ganeti andsend them to Cyclades.
Remove mac2eui64 dependency
Import mac2eui64 code which is already shipped under util/mac2eui64 insteadof shipping it as a seperate script.
Fix pep8 issues
Make amqp_puka get logger as argument
Spit monitor messages out to stderr
Process OP_NETWORK_SET_PARAMS Ganeti jobs
Modify snf-ganeti-eventd and snf-dispatcher to handle jobs withOP_NETWORK_SET_PARAMS opcode. Handling of these jobs is neededto update the IP Pool of network, when reserving and releasingIPs directly from the Ganeti backend.
Get Ganeti cluster name from ssconf
Modify snf-ganeti-eventd in order to get the name of the Ganeti clusterfrom shared configuration files (ssconf) instead of performing a LUXI query.Performing a LUXI restricts eventd to run only on the master node.
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
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.
Fix None timestamp in eventd messages
Send the job timestamp when an opcode does not have a timestamp.
Change process title to simplify 'ps' display
Use python-setproctitle to change the process title of the runningdaemon. Make it appear as a native executable to simplifyadministration. Only set executable name, because cannot set individualvalues for arguments.
Fix no-time in eventd messages
Ganeti opcodes may not have an end-timestamp when they go toan error state. In that case send the job end-timestamp.
Fix progress monitor client initialization
correct api use.
Fix AMQP bug in snf-progress-monitor
Comply with the new monitoring system of snf-image
For now only the image-copy-progress messages are processed
Get cluster name from Ganeti
Query Ganeti for getting the cluster name, instead of reading thessconf files.
Add support for IPv6
- Extend the Network model with fields for holding the IPv6 subnet and gateway.- Update network API methods.- Modify ganeti hooks to return IPv6 address for all network interfaces. IPv6 is now derived from the IPv6 subnet of the network in Ganeti,...
Modification in logic for new-style networks
Send cluster name from snf-ganeti-eventd
Remove stale pid lockfiles on daemon invocation
Update setting files
Reduce confirm buffer size of snf-ganeti-eventd
Refactor AMQP client
Refactor snf-ganeti-eventd
Refactor snf-ganeti-eventd to make easier differenet handling of opcodes
Fix version compotability issues with ganeti
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.
Update modules interacting with AMQP
Update all modules which are interacting with the RabbitMQ messaging system touse the AMQPClient in order to use highly available queues in active/activemode.
Extend messages to include a unique identifier in order to handle...
Client for interaction with a RabbitMQ broker
Introduce a client implementing connection and communication with a RabbitMQbroker.
This client silently handles connection failures an tries to connect to adifferent node. Also uses publisher-confirms to guarantee delivery to the...
Fix eventd ad ganeti version compatibility
Rename snf-ganeti-tools to snf-cyclades-gtools