Package ganeti :: Package server :: Module masterd
[hide private]
[frames] | no frames]

Module masterd

source code

Master daemon program.

Some classes deviates from the standard style guide since the inheritance from parent classes requires it.

Classes [hide private]
  ClientRequestWorker
  MasterClientHandler
Handler for master peers.
  _MasterShutdownCheck
Logic for master daemon shutdown.
  MasterServer
Master Server.
  ClientOps
Class holding high-level client operations.
  GanetiContext
Context common to all ganeti threads.
Functions [hide private]
 
_LogNewJob(status, info, ops)
Log information about a recently submitted job.
source code
 
_SetWatcherPause(context, ec_id, until)
Creates or removes the watcher pause file.
source code
Variables [hide private]
  CLIENT_REQUEST_WORKERS = 16
  EXIT_NOTMASTER = constants.EXIT_NOTMASTER
  EXIT_NODESETUP_ERROR = constants.EXIT_NODESETUP_ERROR

Imports: os, sys, socket, time, tempfile, logging, config, constants, daemon, jqueue, luxi, rpcerr, utils, errors, workerpool, rpc, rpccl, ht


Function Details [hide private]

_SetWatcherPause(context, ec_id, until)

source code 

Creates or removes the watcher pause file.

Parameters:
  • context (GanetiContext) - Global Ganeti context
  • until (None or int) - Unix timestamp saying until when the watcher shouldn't run