Remove Ganeti Lock Manager and Monitor
...from the jobs code, as this functionality is nowcarried out by wconfd. Also remove dead code resultingfrom this removal.
Signed-off-by: Klaus Aehlig <aehlig@google.com>Reviewed-by: Petr Pudlak <pudlak@google.com>
Lift the Disk objects from the Instances
This patch replaces 'instance.disks' with 'GetInstanceDisks' everywherein the codebase. From now on, the function 'GetInstanceDisks' from theconfig file has to be used in order to get the disks of an instance.Also the functions 'AddInstanceDisk'/'RemoveInstanceDisk' have to be...
Add 'disks_info' Instance slot
Instance's 'disks' slot will contain a list of disk UUIDs. Create a newslot named 'disks_info' which will be annotated with the disk objects'during the RPC.
Signed-off-by: Ilias Tsitsimpis <iliastsi@grnet.gr>Reviewed-by: Jose A. Lopes <jabolopes@google.com>
Get instance secondary nodes from config
Use 'GetInstanceSecondaryNodes' to get the secondary nodes of aninstance, instead of the 'secondary_nodes'.Annotate 'secondary_nodes' in rpc so that backend has access to it.
Signed-off-by: Ilias Tsitsimpis <iliastsi@grnet.gr>...
Let Python network Transport retry if endpoint is missing
If the endpoint (such as Luxid or WConfd) isn't running, don't failimmediately. Instead retry (within the given timeout) and try toreconnect.
Signed-off-by: Petr Pudlak <pudlak@google.com>Reviewed-by: Klaus Aehlig <aehlig@google.com>
Add a transport that works over FDs instead a socket
This allows to set up a client using the Luxi-like protocol over a pipe,which will be needed for job processes to communicate with their parentprocess.
While at it, fix the style of calling init in AbstractStubClient....
Use RPC transport to pass OS params to the metadata daemon
Signed-off-by: Jose A. Lopes <jabolopes@google.com>Reviewed-by: Hrvoje Ribicic <riba@google.com>
Remove unused import in rpc/transport.py
.. which got there by mistake.
Retry luxi/wconfd RPC calls if the connection is closed
Since the daemon can decide to close a client connection after atimeout, the client needs to be able to automatically reconnect.
This patch introduces this functionality into the RPC client:If an attempt to send data fails on 'Broken pipe', it's retried one more...
Merge branch 'stable-2.11' into master
View revisions
Also available in: Atom