← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1246181] Re: instance going to running deleted because of race condition between soft reboot and terminate

 

** Changed in: nova
       Status: Incomplete => Invalid

-- 
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/1246181

Title:
  instance going to running deleted because of race condition between
  soft reboot and terminate

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  I have added a fixme while I fixing the bug #1111213 Instance can not be deleted after soft reboot,
  the situation occurs recently in our test env of Havana, so I want to fix the remaining issue here.

  the fixme comment is located at nova/virt/libvirt/driver.py:LibvirtDriver._cleanup()
  # FIXME(wangpan): if the instance is booted again here, such as the
  #                 the soft reboot operation boot it here, it will
  #                 become "running deleted", should we check and destroy
  #                 it at the end of this method?

  the race condition is that, if we soft reboot an instance, and then
  terminate it, then the instance may wait for shutdown status in the
  'reboot' thread, and if the 'terminate' thread destroy the
  instance(but not delete the instance disk files), the instance may be
  started by 'reboot' thread again, and then it becomes to a running
  deleted one.

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