Rebuilding Stopped Instance Sets Terminated_at
Bug #1189554 reported by
Andrew Melton
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Phil Day |
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_
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.
description: | updated |
tags: | added: compute |
Changed in nova: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in nova: | |
status: | Triaged → Confirmed |
importance: | High → Medium |
Changed in nova: | |
assignee: | nobody → Lawrance (jing) |
Changed in nova: | |
assignee: | Lawrance (jing) → Phil Day (philip-day) |
Changed in nova: | |
milestone: | none → havana-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-rc1 → 2013.2 |
To post a comment you must log in.
Hi Lawance - are you actively working on this ? Its causing us a bit pf pain and I'd be willing to take it over
Phil