Skip to content
Snippets Groups Projects
Commit 14fe92c7 authored by Bernardo Dal Seno's avatar Bernardo Dal Seno
Browse files

New RPC call for node verify in dns-only RPC client


This will be used in node-add.

Signed-off-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 525939d9
No related branches found
No related tags found
No related merge requests found
......@@ -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, [
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment