Commit f1926756 authored by Guido Trotter's avatar Guido Trotter
Browse files

Don't check memory at startup if instance is up


Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
parent b8a8fbe1
......@@ -2767,9 +2767,14 @@ class LUStartupInstance(LogicalUnit):
# check bridges existance
_CheckInstanceBridgesExist(self, instance)
_CheckNodeFreeMemory(self, instance.primary_node,
"starting instance %s" % instance.name,
bep[constants.BE_MEMORY], instance.hypervisor)
remote_info = self.rpc.call_instance_info(instance.primary_node,
instance.name,
instance.hypervisor)
remote_info.Raise()
if not remote_info.data:
_CheckNodeFreeMemory(self, instance.primary_node,
"starting instance %s" % instance.name,
bep[constants.BE_MEMORY], instance.hypervisor)
def Exec(self, feedback_fn):
"""Start the instance.
......
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