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:
@@ -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") %
|
||||
|
||||
Reference in New Issue
Block a user