'Will this host be a node marked as schedulable.'

def is_schedulable_node(self, all_hosts):

    if (not self.is_node()):
        return False
    if (not self.is_master()):
        return True
    masters = [host for host in all_hosts if host.is_master()]
    nodes = [host for host in all_hosts if host.is_node()]
    if (len(masters) == len(nodes)):
        return True
    return False
