.. in "replace-disks", as starting the disks changes the instance object and a subsequent call to cfg.Update fails.
Signed-off-by: Petr Pudlak <[email protected]> --- lib/cmdlib/instance_storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cmdlib/instance_storage.py b/lib/cmdlib/instance_storage.py index ab89075..b1c8b8f 100644 --- a/lib/cmdlib/instance_storage.py +++ b/lib/cmdlib/instance_storage.py @@ -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.lu, self.instance, True) + # Re-read the instance object modified by the previous call + self.instance = self.cfg.GetInstanceInfo(self.instance.uuid) try: # Should we replace the secondary node? -- 2.1.0.rc2.206.gedb03e5
