Ignore instances in the ERROR state.
Fixes bug 1064472. The compute pollster should not query libvirt for instances that are ERROR'd out. Change-Id: I8748694453ba6d9d58dc0555ed996fcd9400ad05
This commit is contained in:
@@ -80,4 +80,5 @@ class AgentManager(manager.Manager):
|
||||
# FIXME(dhellmann): How do we get a list of instances without
|
||||
# talking directly to the database?
|
||||
for instance in self.db.instance_get_all_by_host(context, self.host):
|
||||
self.poll_instance(context, instance)
|
||||
if instance['vm_state'] != 'error':
|
||||
self.poll_instance(context, instance)
|
||||
|
||||
Reference in New Issue
Block a user