Comment 1 for bug 1294511

Revision history for this message
Yu Liu (liuyu342) wrote :

Root cause:

2014-03-19 07:26:34.070 15316 WARNING nova.scheduler.filters.compute_filter [req-13d9cfa3-1d8f-4c26-a46a-6636e8bd9a24 3d7ffb47dd41404491d4a0021c0a4d58 1fa8989d15164378b200a03ca4d125ed] NV-ACBDB7A (192-168-0-6, 192-168-0-6.scecd.ibm.com) ram:5340 disk:20480 io_ops:0 instances:0 has not been heard from in a while
2014-03-19 07:26:34.071 15316 INFO nova.filters [req-13d9cfa3-1d8f-4c26-a46a-6636e8bd9a24 3d7ffb47dd41404491d4a0021c0a4d58 1fa8989d15164378b200a03ca4d125ed] NV-9EF7356 Filter ComputeFilter returned 0 hosts
2014-03-19 07:26:34.071 15316 WARNING nova.scheduler.driver [req-13d9cfa3-1d8f-4c26-a46a-6636e8bd9a24 3d7ffb47dd41404491d4a0021c0a4d58 1fa8989d15164378b200a03ca4d125ed] [instance: 4c40d930-dc98-4d6b-9f68-d3bd67a339e0] NV-EAF7DD6 Setting instance to ERROR state.

compute_filter.py:

    def host_passes(self, host_state, filter_properties):
        """Returns True for only active compute nodes."""
        service = host_state.service
        if service['disabled']:
            LOG.debug(_("%(host_state)s is disabled, reason: %(reason)s"),
                      {'host_state': host_state,
                       'reason': service.get('disabled_reason')})
            return False
        else:
            if not self.servicegroup_api.service_is_up(service):
                LOG.warn(_("%(host_state)s has not been heard from in a "
                           "while"), {'host_state': host_state})
                return False
        return True