<div dir="ltr"><div>Hi all, </div><div><br></div><div>Recently, some of my instances were stuck in task_state 'None' during VM creation in my environment.<br></div><div><br></div><div>So I checked & found there's a 'None' task_state between 'SCHEDULING' & 'BLOCK_DEVICE_MAPPING'.<br>
</div><div><br></div><div>The related codes are implemented like this:</div><div><br></div><div># def _start_building():<br></div><div><div># self._instance_update(context, instance['uuid'],</div><div># vm_state=vm_states.BUILDING,</div>
<div># task_state=None,</div><div># expected_task_state=(task_states.SCHEDULING,</div><div># None))</div></div><div>
<br></div><div>So if compute node is rebooted after that procession, all building VMs on it will always stay in 'None' task_state. And it's useless and not convenient for locating problems. <br></div><div><br>
</div><div>Why not a new task_state for this step? <br></div><div><br></div><div><br></div><div>WingWJ</div></div>