Add some debug log into solver_scheduler

This makes the scheduler to log host states and filter properties before the
solver takes them.

Change-Id: Icaf23e504bc13b4549e8284b17e41535d1968cfd
This commit is contained in:
Xinyuan Huang
2015-07-21 18:11:22 +08:00
parent d620edcda5
commit 83d8b3e4f4

View File

@@ -147,6 +147,10 @@ class ConstraintSolverScheduler(filter_scheduler.FilterScheduler):
hosts, filter_properties)
list_hosts = list(hosts)
LOG.debug(_("host state list: %(hoststates)s"),
{"hoststates": list_hosts})
LOG.debug(_("filter properties given to solver: %(prop)s"),
{"prop": filter_properties})
host_instance_combinations = self.hosts_solver.solve(
list_hosts, filter_properties)
LOG.debug(_("solver results: %(host_instance_tuples_list)s") %