Commit cb3ac71c authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Fix configuration calls for LUInstanceStartup



Re-read the instance in-memory objects from WConfd after calls that
change its state.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent d9adac23
......@@ -154,13 +154,14 @@ class LUInstanceStartup(LogicalUnit):
"""
if not self.op.no_remember:
self.cfg.MarkInstanceUp(self.instance.uuid)
self.instance = self.cfg.MarkInstanceUp(self.instance.uuid)
if self.primary_offline:
assert self.op.ignore_offline_nodes
self.LogInfo("Primary node offline, marked instance as started")
else:
StartInstanceDisks(self, self.instance, self.op.force)
self.instance = self.cfg.GetInstanceInfo(self.instance.uuid)
result = \
self.rpc.call_instance_start(self.instance.primary_node,
......
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