Change in vdsm[master]: virt: migration: restore the usage of 'vmstatus'
fromani at redhat.com
fromani at redhat.com
Thu Apr 24 13:34:59 UTC 2014
Francesco Romani has uploaded a new change for review.
Change subject: virt: migration: restore the usage of 'vmstatus'
......................................................................
virt: migration: restore the usage of 'vmstatus'
the usage of the 'vmstatus' constants was lost on
destination in the split of the migration.py.
Change-Id: I181a728a0b75ce0982a52cae27b0c366208a6cf8
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M vdsm/virt/migration.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/51/27051/1
diff --git a/vdsm/virt/migration.py b/vdsm/virt/migration.py
index 60582cb..36be2e0 100644
--- a/vdsm/virt/migration.py
+++ b/vdsm/virt/migration.py
@@ -32,6 +32,7 @@
from vdsm.define import NORMAL, errCode, Mbytes
from . import vmexitreason
+from . import vmstatus
class SourceThread(threading.Thread):
@@ -151,7 +152,7 @@
self._vm.pause('Saving State')
else:
self.log.debug("Migration started")
- self._vm.lastStatus = 'Migration Source'
+ self._vm.lastStatus = vmstatus.MIGRATION_SOURCE
def _recover(self, message):
if not self.status['status']['code']:
@@ -166,7 +167,7 @@
if self._mode == 'file' or self._method != 'online':
self._vm.cont()
# either way, migration has finished
- self._vm.lastStatus = 'Up'
+ self._vm.lastStatus = vmstatus.UP
def _finishSuccessfully(self):
self.status['progress'] = 100
--
To view, visit http://gerrit.ovirt.org/27051
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I181a728a0b75ce0982a52cae27b0c366208a6cf8
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
More information about the vdsm-patches
mailing list