summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-04-12 11:21:29 -0500
committerJosh Kearney <josh@jk0.org>2011-04-12 11:21:29 -0500
commit70c7558b54b693872af09772ae310d893b334dff (patch)
tree979e795f92a8fdab16482c623bb8fe591d9a2087
parentb6c66b55af3825fa4f48208071565b0af31c0618 (diff)
Only warn about rouge instances that compute should know about.
-rw-r--r--nova/compute/manager.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 68b163355..39d7af9c1 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -1111,6 +1111,9 @@ class ComputeManager(manager.SchedulerDependentManager):
# Are there VMs not in the DB?
for vm_not_found_in_db in vms_not_found_in_db:
name = vm_not_found_in_db
- # TODO(justinsb): What to do here? Adopt it? Shut it down?
- LOG.warning(_("Found VM not in DB: '%(name)s'. Ignoring")
- % locals())
+
+ # We only care about instances that compute *should* know about
+ if name.startswith("instance-"):
+ # TODO(justinsb): What to do here? Adopt it? Shut it down?
+ LOG.warning(_("Found VM not in DB: '%(name)s'. Ignoring")
+ % locals())