← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1330503] Re: Restarting destination compute manager during resize migration can cause instance data loss

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => juno-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1330503

Title:
  Restarting destination compute manager during resize migration can
  cause instance data loss

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  During compute manager startup init_host is called. One of the
  functions there is to delete instance data that doesn't belong to this
  host i.e. _destroy_evacuated_instances. But this function only checks
  if the local instance belongs to the host or not. It doesn't check the
  task_state or vm_state.

  If at this time a resize migration is taking place and the destination
  compute manager is restarted it might destroy the resizing instance.
  Alternatively, if the resize has completed (vm_state = RESIZED) but
  has not been confirmed/reverted, then a restart of the source compute
  manager might destroy the original instance.

  A similar bug concerning just the migrating state is outlined here:
  https://bugs.launchpad.net/nova/+bug/1319797 and a fix is proposed
  here: https://review.openstack.org/#/c/93903

  It was intended to have that fix deal with resize migrating instances
  as well as those just in the migrating state but as pointed out in a
  review comment this solution will work for migrating but a fix for
  resize would require further changes so I have raised this bug to
  highlight that.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1330503/+subscriptions


References