Пример #1
0
def main():
    service.prepare_service()
    rpc.init()
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
Пример #2
0
def main():
    service.prepare_service()
    rpc.init()
    server = app.build_server()
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass
Пример #3
0
 def start_fixture(self):
     rpc.init()
     target = messaging.Target(topic='cloudkitty',
                               server=cfg.CONF.host,
                               version='1.0')
     endpoints = [self.endpoint()]
     self.server = rpc.get_server(target, endpoints)
     self.server.start()
Пример #4
0
def setup_app():
    rpc.init()
    # FIXME(sheeprine): Extension fixtures are interacting with transformers
    # loading, since collectors are not needed here we shunt them
    no_collector = mock.patch(
        'cloudkitty.collector.get_collector',
        return_value=None)
    with no_collector:
        return app.load_app()
Пример #5
0
 def start_fixture(self):
     rpc.init()
     target = messaging.Target(topic='cloudkitty',
                               server=cfg.CONF.host,
                               version='1.0')
     endpoints = [
         self.endpoint()
     ]
     self.server = rpc.get_server(target, endpoints)
     self.server.start()
Пример #6
0
def setup_app():
    rpc.init()
    return app.setup_app()
Пример #7
0
def setup_app():
    rpc.init()
    return app.setup_app()