Francesco Romani has posted comments on this change.
Change subject: keep pauseCode when migrating paused VM
......................................................................
Patch Set 6:
(1 comment)
http://gerrit.ovirt.org/#/c/27801/6/vdsm/virt/vm.py
File vdsm/virt/vm.py:
Line 1957: if migrating and self.lastStatus != vmstatus.DOWN:
Line 1958: self._waitForIncomingMigrationFinish()
Line 1959:
Line 1960: self.lastStatus = vmstatus.UP
Line 1961: if self._initTimePauseCode:
I think the current code is broken.
To add even more, one of
the driving factors, possibly the main one, to track the _initTimePauseCode is to extend
the drives if needed, but the _initTimePauseCode collection is known broken:
https://bugzilla.redhat.com/show_bug.cgi?id=1067414
However, to make a long -and confusing- story short, I think we simply do not cope
properly with the pause code handling across migrations (including migrating paused VM). I
think is safer if we review all these flows.
Not sure it is within the scope of this patch, however.
Line 1962: self.conf['pauseCode'] = self._initTimePauseCode
Line 1963: if self._initTimePauseCode == 'ENOSPC':
Line 1964: self.cont()
Line 1965: elif not migrating:
--
To view, visit
http://gerrit.ovirt.org/27801
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Iead0697bbebba3f261040221b04cd3745d8ef036
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek(a)redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes