def _notify_all_volume_hosts(self, event): rpc.fanout_cast(context.get_admin_context(), FLAGS.volume_topic, { "method": "notification", "args": { "event": event } })
def update_service_capabilities(context, service_name, host, capabilities): """Send an update to all the scheduler services informing them of the capabilities of this service.""" kwargs = dict( method="update_service_capabilities", args=dict(service_name=service_name, host=host, capabilities=capabilities) ) return rpc.fanout_cast(context, "scheduler", kwargs)
def update_service_capabilities(context, service_name, host, capabilities): """Send an update to all the scheduler services informing them of the capabilities of this service.""" kwargs = dict(method='update_service_capabilities', args=dict(service_name=service_name, host=host, capabilities=capabilities)) return rpc.fanout_cast(context, 'scheduler', kwargs)
def _notify_all_volume_hosts(self, event): rpc.fanout_cast(context.get_admin_context(), FLAGS.volume_topic, {"method": "notification", "args": {"event": event}})