task_state is not reset when instance fails to build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Undecided
|
Matt Riedemann |
Bug Description
We have an instance hit the instance_
The instance is put to Error state. However, the task state is still staying in 'initializing'. Shouldn't the task state be reset in this case?
2013-10-16 07:38:40.306 5339 WARNING nova.compute.
@periodic_
def _check_
"""Ensure that instances are not stuck in build."""
timeout = CONF.instance_
if timeout == 0:
return
filters = {'vm_state': vm_states.BUILDING,
for instance in building_insts:
if timeutils.
http://
IRC discussion with some history on the code:
(12:36:46 PM) mriedem: mrodden: looks like it's been that way for a long long time
(12:36:46 PM) mriedem: https:/
(12:37:29 PM) SergeyLukjanov left the room (quit: Quit: My MacBook has gone to sleep. ZZZzzz…).
(12:39:28 PM) mriedem: bnemec: any ideas? ^
(12:40:50 PM) mriedem: mrodden: looks like expected task state is None when you rebuild from an ERROR state
(12:40:50 PM) mriedem: https:/
(12:40:52 PM) mriedem: so looks like a bug
(12:40:59 PM) mriedem: 1 line fix at least :)
Mr__T mriedem mrodden
(12:43:19 PM) mriedem: mrodden: furthermore, looks like the unit tests aren't validating the vm_state/task_state passed to set_instance_
(12:43:20 PM) mriedem: def fake_set_
(12:43:26 PM) mriedem: easy fix
Changed in nova: | |
assignee: | nobody → Matt Riedemann (mriedem) |
Changed in nova: | |
status: | In Progress → Won't Fix |
Fix proposed to branch: master /review. openstack. org/52519
Review: https:/