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 78d9a7f643
commit 1f5284adac
1 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,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",