X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/be3a4b145fbb80d50df7d9e743a301dd735daa60..9a8ae794db0f1aded3bb0e86892fa248b624b9d2:/lib/constants.py diff --git a/lib/constants.py b/lib/constants.py index 0560dec..973914b 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -529,6 +529,9 @@ DISK_TRANSFER_CONNECT_TIMEOUT = 60 # Disk index separator DISK_SEPARATOR = _autoconf.DISK_SEPARATOR +#: Key for job IDs in opcode result +JOB_IDS_KEY = "jobs" + # runparts results (RUNPARTS_SKIP, RUNPARTS_RUN, @@ -1030,13 +1033,16 @@ QR_GROUP = "group" QR_OS = "os" #: List of resources which can be queried using L{opcodes.OpQuery} -QR_OP_QUERY = frozenset([QR_INSTANCE, QR_NODE, QR_GROUP, QR_OS]) +QR_VIA_OP = frozenset([QR_INSTANCE, QR_NODE, QR_GROUP, QR_OS]) #: List of resources which can be queried using Local UniX Interface -QR_OP_LUXI = QR_OP_QUERY.union([ +QR_VIA_LUXI = QR_VIA_OP.union([ QR_LOCK, ]) +#: List of resources which can be queried using RAPI +QR_VIA_RAPI = QR_VIA_LUXI + # Query field types QFT_UNKNOWN = "unknown" QFT_TEXT = "text"