Example #1
0
def main():
    config.init()
    transport = oslo_messaging.get_transport(CONF)
    target = oslo_messaging.Target(
        topic=CONF.openstack_sample.topic + '.localhost', version='2.0')
    client = oslo_messaging.RPCClient(transport, target)
    print client.call({'some': 'context'}, 'test', arg='hello')
Example #2
0
def main():
    config.init()
    agent.launch()
def main():
    config.init()
    rpc_consumer.launch()
Example #4
0
def main():
    config.init()
    server_consumer.launch()