Esempio n. 1
0
def main():
    service.prepare_service()
    server = app.build_server()
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass
Esempio n. 2
0
def main():
    service.prepare_service()
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
Esempio n. 3
0
def main():
    service.prepare_service()
    rpc.init()
    server = app.build_server()
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass
Esempio n. 4
0
def main():
    service.prepare_service()
    rpc.init()
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
Esempio n. 5
0
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # function is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg options are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    orchestrator.CloudKittyServiceManager().run()
Esempio n. 6
0
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # function is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg options are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    orchestrator.OrchestratorServiceManager().run()
Esempio n. 7
0
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # fonction is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg option are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
Esempio n. 8
0
def main():
    service.prepare_service()
    CONF.command.func()
Esempio n. 9
0
def main():
    service.prepare_service()
    CONF.command.func()
Esempio n. 10
0
def main():
    service.prepare_service()
    init_storage_backend()
Esempio n. 11
0
def build_wsgi_app(argv=None):
    service.prepare_service()
    return load_app()
Esempio n. 12
0
def main():
    service.prepare_service()
    init_storage_backend()
Esempio n. 13
0
def main():
    service.prepare_service()
    command_object = DBCommand()
    CONF.command.func(command_object)
Esempio n. 14
0
def build_wsgi_app(argv=None):
    service.prepare_service()
    return load_app()
Esempio n. 15
0
def main():
    service.prepare_service()
    command_object = DBCommand()
    CONF.command.func(command_object)