Yeela Kaplan has uploaded a new change for review.

Change subject: vm: Update domains list for disks attached to vm after LSM
......................................................................

vm: Update domains list for disks attached to vm after LSM

Change-Id: I6cda08eea5e94f4cb9039ce08eac2bfe0861e260
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1036680
Signed-off-by: Yeela Kaplan <ykap...@redhat.com>
---
M vdsm/vm.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/36/22536/1

diff --git a/vdsm/vm.py b/vdsm/vm.py
index 1358b09..534705d 100644
--- a/vdsm/vm.py
+++ b/vdsm/vm.py
@@ -4147,6 +4147,9 @@
                 self.log.error("Unable to teardown the previous chain: %s",
                                diskToTeardown, exc_info=True)
             self.updateDriveParameters(dstDiskCopy)
+            if "domainID" in srcDisk:
+                self.sdIds.append(dstDiskCopy['domainID'])
+                self.sdIds.remove(srcDisk['domainID'])
         finally:
             self._delDiskReplica(srcDrive)
             self.startDisksStatsCollection()


-- 
To view, visit http://gerrit.ovirt.org/22536
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6cda08eea5e94f4cb9039ce08eac2bfe0861e260
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <ykap...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to