- Replaced ``--disks`` option of ``gnt-instance replace-disks`` with a
more flexible ``--disk`` option. Now disk size and mode can be changed
upon recreation.
+- Removed deprecated ``QueryLocks`` LUXI request. Use
+ ``Query(what=QR_LOCK, ...)`` instead.
Version 2.5.0 rc5
import time
import errno
import logging
-import warnings
from ganeti import serializer
from ganeti import constants
REQ_QUERY_CONFIG_VALUES = "QueryConfigValues"
REQ_QUERY_CLUSTER_INFO = "QueryClusterInfo"
REQ_QUERY_TAGS = "QueryTags"
-REQ_QUERY_LOCKS = "QueryLocks"
REQ_QUEUE_SET_DRAIN_FLAG = "SetDrainFlag"
REQ_SET_WATCHER_PAUSE = "SetWatcherPause"
def QueryTags(self, kind, name):
return self.CallMethod(REQ_QUERY_TAGS, (kind, name))
-
- def QueryLocks(self, fields, sync):
- warnings.warn("This LUXI call is deprecated and will be removed, use"
- " Query(\"%s\", ...) instead" % constants.QR_LOCK)
- return self.CallMethod(REQ_QUERY_LOCKS, (fields, sync))
op = opcodes.OpTagsGet(kind=kind, name=name)
return self._Query(op)
- elif method == luxi.REQ_QUERY_LOCKS:
- (fields, sync) = args
- logging.info("Received locks query request")
- if sync:
- raise NotImplementedError("Synchronous queries are not implemented")
- return self.server.context.glm.OldStyleQueryLocks(fields)
-
elif method == luxi.REQ_QUEUE_SET_DRAIN_FLAG:
(drain_flag, ) = args
logging.info("Received queue drain flag change request to %s",