xenapi sync_power_states peridodic task can traceback when instance not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Andrew Laski |
Bug Description
When an instance is not found on the hypervisor during the sync_power_states periodic task, possibly because it's being resized/migrated, there's a traceback in the compute logs.
2013-09-10 17:46:27.736 32525 ERROR nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
2013-09-10 17:46:27.736 32525 TRACE nova.openstack.
This is happening because the xenapi raises a NotFound exception but the sync_power_states task is expecting an InstanceNotFound exception. NotFound is a general exception and InstanceNotFound is a more specific one so it would be better to raise InstanceNotFound and catch NotFound. But for this case it should be ok to just raise InstanceNotFound.
Changed in nova: | |
assignee: | nobody → Andrew Laski (alaski) |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → havana-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-rc1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/47012
Review: https:/