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

Re-read an instance object after starting its disks

.. in "replace-disks", as starting the disks changes the instance object
and a subsequent call to cfg.Update fails.
Signed-off-by: default avatarPetr Pudlak <>
Reviewed-by: default avatarKlaus Aehlig <>
parent c6b71b75
......@@ -2239,6 +2239,8 @@ class TLReplaceDisks(Tasklet):
# Activate the instance disks if we're replacing them on a down instance
if activate_disks:
StartInstanceDisks(, self.instance, True)
# Re-read the instance object modified by the previous call
self.instance = self.cfg.GetInstanceInfo(self.instance.uuid)
# Should we replace the secondary 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