Example #1
0
 def _notify_all_volume_hosts(self, event):
     rpc.fanout_cast(context.get_admin_context(), FLAGS.volume_topic, {
         "method": "notification",
         "args": {
             "event": event
         }
     })
Example #2
0
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)
Example #3
0
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)
Example #4
0
 def _notify_all_volume_hosts(self, event):
     rpc.fanout_cast(context.get_admin_context(),
              FLAGS.volume_topic,
              {"method": "notification",
               "args": {"event": event}})