'Return the list of hosts that have a running service for topic.'

def hosts_up(self, context, topic):

    services = objects.ServiceList.get_by_topic(context, topic)
    return [service.host for service in services if self.servicegroup_api.service_is_up(service)]
