gtools: Make eventd send job fields
Make snf-ganeti-eventd send 'job_fields' for instance and networkopcodes, and modify the corresponding backend functions andsnf-dispatcher callbacks.
gtools: Make snf-ganeti-eventd send NIC names
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...
View revisions
Also available in: Atom