Comment 4 for bug 1740320

Revision history for this message
Supreeth Shivanand (supreeth90) wrote :

Yes I think you are the one I spoke to in IRC. I added a patch that was suggested by you in our environment and so far its been good. I am sharing that below here:

It goes like:
num_instances = host_state.num_instances or len(host_state.instances)
if len(host_state.instances) != host_state.num_instances:
    LOG.warn("NumInstancesFilter: num_instances doesn't match host_state.instances for host: {}, num_instances: {}, len_instances: {} ".format(host_state.host, host_state.num_instances, len(host_state.instances)))