Loading ccserver/jobs.py +16 −8 Original line number Diff line number Diff line Loading @@ -243,7 +243,22 @@ class KillOldCliJob(BaseJob): time.sleep(delay) class ColdMigrationJob(BaseJob): class BaseMigrationJob(BaseJob): ''' Base class for migration jobs. ''' def _check_status(self, vm_id, status): ''' Check the status of the VM. ''' answer = self.manager.server.list('id=%s&status=%s' % (vm_id, status)) return bool(answer) class ColdMigrationJob(BaseMigrationJob): ''' A cold vm migration job. Loading Loading @@ -362,13 +377,6 @@ class ColdMigrationJob(BaseJob): logging.info('Job-%s: Migration completed with success', self['id']) def _check_status(self, vm_id, status): ''' Check the status of the VM. ''' answer = self.manager.server.list('id=%s&status=%s' % (vm_id, status)) return bool(answer) def _copy_disk(self, source, dest, vm, disk): ''' Loading Loading
ccserver/jobs.py +16 −8 Original line number Diff line number Diff line Loading @@ -243,7 +243,22 @@ class KillOldCliJob(BaseJob): time.sleep(delay) class ColdMigrationJob(BaseJob): class BaseMigrationJob(BaseJob): ''' Base class for migration jobs. ''' def _check_status(self, vm_id, status): ''' Check the status of the VM. ''' answer = self.manager.server.list('id=%s&status=%s' % (vm_id, status)) return bool(answer) class ColdMigrationJob(BaseMigrationJob): ''' A cold vm migration job. Loading Loading @@ -362,13 +377,6 @@ class ColdMigrationJob(BaseJob): logging.info('Job-%s: Migration completed with success', self['id']) def _check_status(self, vm_id, status): ''' Check the status of the VM. ''' answer = self.manager.server.list('id=%s&status=%s' % (vm_id, status)) return bool(answer) def _copy_disk(self, source, dest, vm, disk): ''' Loading