Change in vdsm[master]: vm: implement VM.sdIds as read-only property

nsoffer at redhat.com nsoffer at redhat.com
Mon Sep 15 11:34:41 UTC 2014


Nir Soffer has posted comments on this change.

Change subject: vm: implement VM.sdIds as read-only property
......................................................................


Patch Set 7:

(2 comments)

http://gerrit.ovirt.org/#/c/32796/7/vdsm/virt/vm.py
File vdsm/virt/vm.py:

Line 2872
Line 2873
Line 2874
Line 2875
Line 2876
> The comment was needed when we were adding domain ids, and *not* starting d
I'm ok with leaving this comment. Add a title to make it more clear e.g. # recovery flow - ...


Line 5588:     def sdIds(self):
Line 5589:         """
Line 5590:         Returns a list of the ids of the storage domains in use by the VM.
Line 5591:         """
Line 5592:         return set(device.domainID for device in self._devices[DISK_DEVICES]
> so new check in the inner loop should become device['device'] == 'disk' and
Right, like the old check when collecting domain ids.
Line 5593:                    if isVdsmImage(device))
Line 5594: 
Line 5595: 
Line 5596: class LiveMergeCleanupThread(threading.Thread):


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie445d4689aa562b00229844007ffa05eaecebdcb
Gerrit-PatchSet: 7
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Fabio Pliger <fabio.pliger at gmail.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Fabio Pliger <fabio.pliger at gmail.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Yeela Kaplan <ykaplan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list