Commit 09037780 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Remove deprecated “QueryLocks” LUXI request

This has been deprecated since Ganeti 2.4 and hasn't been used by
Ganeti's code since. I'm not aware of any external users.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 48796673
......@@ -12,6 +12,8 @@ Version 2.6.0 beta1
- 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
......@@ -34,7 +34,6 @@ import collections
import time
import errno
import logging
import warnings
from ganeti import serializer
from ganeti import constants
......@@ -65,7 +64,6 @@ REQ_QUERY_EXPORTS = "QueryExports"
REQ_QUERY_TAGS = "QueryTags"
REQ_QUERY_LOCKS = "QueryLocks"
......@@ -551,8 +549,3 @@ class Client(object):
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))
......@@ -393,13 +393,6 @@ class ClientOps:
op = opcodes.OpTagsGet(kind=kind, name=name)
return self._Query(op)
elif method == luxi.REQ_QUERY_LOCKS:
(fields, sync) = args"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"Received queue drain flag change request to %s",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment