Commit 1cacd76b authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Add RPC to modify metadata

This RPC is used to send instance configuration data from the master
to the node daemon, which in turn sends that data to the metadata
Signed-off-by: default avatarJose A. Lopes <>
Reviewed-by: default avatarHrvoje Ribicic <>
parent 2fd4e86d
......@@ -296,6 +296,9 @@ _INSTANCE_CALLS = [
("hotplug_supported", SINGLE, None, constants.RPC_TMO_NORMAL, [
("instance", ED_INST_DICT, "Instance object"),
], None, None, "Check if hotplug is supported"),
("instance_metadata_modify", SINGLE, None, constants.RPC_TMO_URGENT, [
("instance", None, "Instance object"),
], None, None, "Modify instance metadata"),
......@@ -639,6 +639,14 @@ class NodeRequestHandler(http.server.HttpServerHandler):
instance = objects.Instance.FromDict(params[0])
return backend.HotplugSupported(instance)
def perspective_instance_metadata_modify(params):
"""Modify instance metadata.
instance = params[0]
return backend.ModifyInstanceMetadata(instance)
def perspective_migration_info(params):
"""Gather information about an instance to be migrated.
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