← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1189554] Re: Rebuilding Stopped Instance Sets Terminated_at

 

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

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

Title:
  Rebuilding Stopped Instance Sets Terminated_at

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  At the end of a rebuild action, nova checks the original vm_state of
  the instance to see if it was stopped. If the instance was originality
  stopped, nova will stop the newly rebuild instance. Right before the
  stop, nova updates the instance and sets it's terminated_at to
  utcnow(). Due to this, the periodic usage audit does not send usage
  for the instance.

  Steps to reproduce:
  1) With instance_usage_audit turned on.
  2) Stop instance, observe vm_state = 'stopped', empty terminated_at
  3) Rebuild instance
  4) After rebuild completes, observe populated terminated_at
  5) After period ends, observe that no compute.instance.exists is generated for newly rebuilt instance.

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