Compute _init_instance changes instance from object to dict causing an AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Andrew Laski | ||
Icehouse |
Fix Released
|
Low
|
Matt Riedemann |
Bug Description
On a compute restart sometimes the following error occurs and the compute fails to start:
2014-04-17 03:36:09.527 26115 ERROR nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 03:36:09.527 26115 TRACE nova.openstack.
2014-04-17 04:01:15.145 27377 DEBUG nova.servicegro
The issue appears to lie with the line immediately above which performs an instance update and overwrites the instance object with a dict.
instance = self._instance_
tags: | added: icehouse-backport-potential |
tags: | removed: icehouse-backport-potential |
tags: | removed: in-stable-icehouse |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
After the instance update the next compute start will succeed because it doesn't enter the same if block.