Change in vdsm[master]: volume: prepare only one volume on clone
Jenkins CI RO has posted comments on this change. Change subject: volume: prepare only one volume on clone .. Patch Set 1: Abandoned due to no activity - please restore if still relevant -- To view, visit https://gerrit.ovirt.org/26920 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Idc009fac4dc1a258537b0ffb15bd627680d79330 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico SimoncelliGerrit-Reviewer: Federico Simoncelli Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Jenkins CI RO Gerrit-Reviewer: automat...@ovirt.org Gerrit-HasComments: No ___ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
Change in vdsm[master]: volume: prepare only one volume on clone
Itamar Heim has posted comments on this change. Change subject: volume: prepare only one volume on clone .. Patch Set 1: ping -- To view, visit http://gerrit.ovirt.org/26920 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Idc009fac4dc1a258537b0ffb15bd627680d79330 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimo...@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimo...@redhat.com Gerrit-Reviewer: Itamar Heim ih...@redhat.com Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: No ___ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
Change in vdsm[master]: volume: prepare only one volume on clone
Federico Simoncelli has posted comments on this change. Change subject: volume: prepare only one volume on clone .. Patch Set 1: Code-Review-1 This change requires: http://lists.gnu.org/archive/html/qemu-devel/2012-04/msg01431.html -- To view, visit http://gerrit.ovirt.org/26920 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Idc009fac4dc1a258537b0ffb15bd627680d79330 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimo...@redhat.com Gerrit-Reviewer: Federico Simoncelli fsimo...@redhat.com Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: No ___ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
Change in vdsm[master]: volume: prepare only one volume on clone
Federico Simoncelli has uploaded a new change for review. Change subject: volume: prepare only one volume on clone .. volume: prepare only one volume on clone When we are cloning a volume we need only Change-Id: Idc009fac4dc1a258537b0ffb15bd627680d79330 Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- M vdsm/storage/volume.py 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/20/26920/1 diff --git a/vdsm/storage/volume.py b/vdsm/storage/volume.py index e1d3fc7..a36914f 100644 --- a/vdsm/storage/volume.py +++ b/vdsm/storage/volume.py @@ -271,7 +271,7 @@ wasleaf = True self.setInternal() try: -self.prepare(rw=False) +self.prepare(rw=False, justme=True) dst_path = os.path.join(dst_image_dir, dst_volUUID) self.log.debug('cloning volume %s to %s', self.volumePath, dst_path) @@ -283,15 +283,15 @@ qemuimg.create(dst_path, backing=parent, format=fmt2str(volFormat), backingFormat=fmt2str(self.getFormat())) -self.teardown(self.sdUUID, self.volUUID) except Exception as e: self.log.exception('cannot clone volume %s to %s', self.volumePath, dst_path) # FIXME: might race with other clones if wasleaf: self.setLeaf() -self.teardown(self.sdUUID, self.volUUID) raise se.CannotCloneVolume(self.volumePath, dst_path, str(e)) +finally: +self.teardown(self.sdUUID, self.volUUID, justme=True) def _shareLease(self, dstImgPath): -- To view, visit http://gerrit.ovirt.org/26920 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idc009fac4dc1a258537b0ffb15bd627680d79330 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimo...@redhat.com ___ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
Change in vdsm[master]: volume: prepare only one volume on clone
oVirt Jenkins CI Server has posted comments on this change. Change subject: volume: prepare only one volume on clone .. Patch Set 1: Build Failed http://jenkins.ovirt.org/job/vdsm_master_pep8_gerrit/8180/ : SUCCESS http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit/8293/ : FAILURE http://jenkins.ovirt.org/job/vdsm_master_unit_tests_gerrit_el/7390/ : SUCCESS -- To view, visit http://gerrit.ovirt.org/26920 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Idc009fac4dc1a258537b0ffb15bd627680d79330 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli fsimo...@redhat.com Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: No ___ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches