From adb11a00cc2c53b1fb07249d6ae0fc40c63c39bc Mon Sep 17 00:00:00 2001 From: Rick Harris Date: Thu, 17 May 2012 16:33:11 -0500 Subject: Add additional logging to compute filter Change-Id: I3cca70ea81be12cc5a47d492f49a30774f902c91 --- nova/scheduler/filters/compute_filter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nova/scheduler/filters/compute_filter.py b/nova/scheduler/filters/compute_filter.py index 247e39753..5409d3db0 100644 --- a/nova/scheduler/filters/compute_filter.py +++ b/nova/scheduler/filters/compute_filter.py @@ -47,9 +47,14 @@ class ComputeFilter(filters.BaseHostFilter): service = host_state.service if not utils.service_is_up(service) or service['disabled']: + LOG.debug(_("%(host_state)s is disabled or has not been " + "heard from in a while"), locals()) return False if not capabilities.get("enabled", True): + LOG.debug(_("%(host_state)s is disabled via capabs"), locals()) return False if not self._satisfies_extra_specs(capabilities, instance_type): + LOG.debug(_("%(host_state)s fails instance_type extra_specs " + "requirements"), locals()) return False return True -- cgit