diff --git a/lib/server/noded.py b/lib/server/noded.py index 1351b9c90c54793d6056a6124b71125465166da0..2e1ceaade81ef93eaf8da72141f70a4b2a7a2d3c 100644 --- a/lib/server/noded.py +++ b/lib/server/noded.py @@ -57,6 +57,16 @@ import ganeti.http.server # pylint: disable=W0611 queue_lock = None +def _extendReasonTrail(trail, source, reason=""): + """Extend the reason trail with noded information + + The trail is extended by appending the name of the noded functionality + """ + assert trail is not None + trail_source = "%s:%s" % (constants.OPCODE_REASON_SRC_NODED, source) + trail.append((trail_source, reason, utils.EpochNano())) + + def _PrepareQueueLock(): """Try to prepare the queue lock.