Module noded
source code
Ganeti node daemon
|
|
|
|
|
_RequireJobQueueLock(fn)
Decorator for job queue manipulating functions. |
source code
|
|
|
_DecodeImportExportIO(ieio,
ieioargs)
Decodes import/export I/O information. |
source code
|
|
|
|
|
CheckNoded(_,
args)
Initial checks whether to run or exit with a failure. |
source code
|
|
|
PrepNoded(options,
_)
Preparation node daemon function, executed with the PID file held. |
source code
|
|
|
ExecNoded(options,
args,
prep_data)
Main node daemon function, executed with the PID file held. |
source code
|
|
|
|
Imports:
os,
sys,
logging,
signal,
codecs,
OptionParser,
backend,
constants,
objects,
errors,
jstore,
daemon,
http,
utils,
container,
serializer,
netutils,
pathutils,
ssconf,
ganeti
_extendReasonTrail(trail,
source,
reason="")
| source code
|
Extend the reason trail with noded information
The trail is extended by appending the name of the noded
functionality
|
Try to prepare the queue lock.
- Returns:
- None for success, otherwise an exception object
|
Returns value or, if evaluating to False, a default value.
Returns the given value, unless it evaluates to False. In the latter
case the default value is returned.
- Parameters:
value - Value to return if it doesn't evaluate to False
default - Default value
- Returns:
- Given value or the default
|