Revision 6a1434d7 lib/hypervisor/hv_base.py

b/lib/hypervisor/hv_base.py
291 291
    """
292 292
    pass
293 293

  
294
  def FinalizeMigration(self, instance, info, success):
295
    """Finalized an instance migration.
294
  def FinalizeMigrationDst(self, instance, info, success):
295
    """Finalize the instance migration on the target node.
296 296

  
297 297
    Should finalize or revert any preparation done to accept the instance.
298 298
    Since by default we do no preparation, we also don't have anything to do
......
320 320
    """
321 321
    raise NotImplementedError
322 322

  
323
  def FinalizeMigrationSource(self, instance, success, live):
324
    """Finalize the instance migration on the source node.
325

  
326
    @type instance: L{objects.Instance}
327
    @param instance: the instance that was migrated
328
    @type success: bool
329
    @param success: whether the migration succeeded or not
330
    @type live: bool
331
    @param live: whether the user requested a live migration or not
332

  
333
    """
334
    pass
335

  
336
  def GetMigrationStatus(self, instance):
337
    """Get the migration status
338

  
339
    @type instance: L{objects.Instance}
340
    @param instance: the instance that is being migrated
341
    @rtype: L{objects.MigrationStatus}
342
    @return: the status of the current migration (one of
343
             L{constants.HV_MIGRATION_VALID_STATUSES}), plus any additional
344
             progress info that can be retrieved from the hypervisor
345

  
346
    """
347
    raise NotImplementedError
348

  
323 349
  @classmethod
324 350
  def CheckParameterSyntax(cls, hvparams):
325 351
    """Check the given parameters for validity.

Also available in: Unified diff