52
54
msg = _("Is the appropriate service running?")
53
55
raise exception.NoValidHost(reason=msg)
59
def _schedule(self, context, topic, request_spec, **kwargs):
57
64
msg = _("Could not find another host")
58
65
raise exception.NoValidHost(reason=msg)
60
66
return hosts[int(random.random() * len(hosts))]
62
68
def schedule_create_volume(self, context, request_spec, filter_properties):