task_state is not 'None' when vm stay in 'ERROR' state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Rui Chen |
Bug Description
Compute instance task states represent what is happening to the instance at the current moment. When the instance is 'ERROR' state, the 'spawning' task_state make users confused, 'spawning' job had been done and failed, it should been set to 'None'.
1. Version of Nova
$ git log -1
commit 4cf6ef681991836
Merge: f40619b 70ba331
Author: Jenkins <email address hidden>
Date: Wed May 27 22:14:34 2015 +0000
Merge "improve speed of some ec2 keypair tests"
2. Log files
stack@devstack:
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 5fa49075-
| 19920850-
+------
2015-05-28 10:42:14.618 4705 WARNING nova.network.
2015-05-28 10:42:14.619 4705 ERROR nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
2015-05-28 10:42:14.619 4705 TRACE nova.compute.
Traceback (most recent call last):
File "/usr/local/
listener.
File "/usr/local/
result = function(*args, **kwargs)
File "/opt/stack/
six.
File "/opt/stack/
dhcp_
File "/opt/stack/
self.
File "/usr/local/
six.
File "/opt/stack/
security_
File "/opt/stack/
raise exception.
NoMoreFixedIps: No fixed IP addresses available for network: ecf5d5d3-
Removing descriptor: 19
3. Reproduce steps:
* create a neutron network and subnet, there is only 1 fixed ip in the subnet.
neutron subnet-create --allocation-pool start=100.
* boot a instance with the network_id.
Expected result:
* booting failed, instance is 'ERROR' state and task_state is 'None'
Actual result:
* booting failed, instance is 'ERROR' state and task_state is 'spawning'
Changed in nova: | |
assignee: | nobody → Rui Chen (kiwik-chenrui) |
tags: | added: compute |
Changed in nova: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-3 → 12.0.0 |
guess it's because NetworkInfoAsyn cWrapper is async so the reverts_task_state is not helpful