diff --git a/lib/rpc_defs.py b/lib/rpc_defs.py index f17984d77911bc3a3a1bde2b49ef083f81a010df..f5f1c34b23f50452bca6f6a31934f778ca55ceb1 100644 --- a/lib/rpc_defs.py +++ b/lib/rpc_defs.py @@ -584,6 +584,10 @@ CALLS = { "RpcClientDnsOnly": _Prepare([ ("version", MULTI, ACCEPT_OFFLINE_NODE, constants.RPC_TMO_URGENT, [], None, None, "Query node version"), + ("node_verify_light", MULTI, None, constants.RPC_TMO_NORMAL, [ + ("checkdict", None, None), + ("cluster_name", None, None), + ], None, None, "Request verification of given parameters"), ]), "RpcClientConfig": _Prepare([ ("upload_file", MULTI, None, constants.RPC_TMO_NORMAL, [ diff --git a/lib/server/noded.py b/lib/server/noded.py index 607434c2dca3a7804c333cd3785a0fa19f842378..14b7997cb4dd2dddf0ac82301b39e165070a65f5 100644 --- a/lib/server/noded.py +++ b/lib/server/noded.py @@ -706,6 +706,14 @@ class NodeRequestHandler(http.server.HttpServerHandler): """ return backend.VerifyNode(params[0], params[1]) + @classmethod + def perspective_node_verify_light(cls, params): + """Run a light verify sequence on this node. + + """ + # So far it's the same as the normal node_verify + return cls.perspective_node_verify(params) + @staticmethod def perspective_node_start_master_daemons(params): """Start the master daemons on this node.