Beispiel #1
0
def main():
    server.setup_common(possible_topdir, 'engine')

    server.setup_sahara_engine()

    ops_server = ops.OpsServer()
    ops_server.start()
Beispiel #2
0
def main():
    server.setup_common(possible_topdir, 'engine')

    server.setup_sahara_engine()

    ops_server = ops.OpsServer()
    ops_server.start()
Beispiel #3
0
def main():
    server.setup_common(possible_topdir, 'engine')

    server.setup_sahara_engine()

    ops_server = ops.OpsServer()
    launcher = server.get_process_launcher()
    launcher.launch_service(ops_server.get_service())
    launcher.wait()
Beispiel #4
0
def main():
    server.setup_common(possible_topdir, 'engine')

    server.setup_sahara_engine()

    ops_server = ops.OpsServer()
    launcher = server.get_process_launcher()
    launcher.launch_service(ops_server.get_service())
    launcher.wait()
Beispiel #5
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()

    wsgi.server(eventlet.listen((cfg.CONF.host, cfg.CONF.port), backlog=500),
                app, log=logging.WritableLogger(LOG), debug=False)
Beispiel #6
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    server.start_server(app)
Beispiel #7
0
def main():
    server.setup_common(possible_topdir, "all-in-one")

    app = server.make_app()

    server.setup_sahara_api("all-in-one")
    server.setup_sahara_engine()
    server.setup_auth_policy()

    server.start_server(app)
Beispiel #8
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    server.launch_api_service(
        launcher, server.SaharaWSGIService("sahara-all", app))
Beispiel #9
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    server.launch_api_service(launcher,
                              server.SaharaWSGIService("sahara-all", app))
Beispiel #10
0
def main():
    server.setup_common(possible_topdir, 'engine')

    server.setup_sahara_engine()
    server.setup_sahara_api('distributed')

    ops_server = ops.OpsServer()
    launcher = server.get_process_launcher()
    service = ops_server.get_service()
    launcher.launch_service(service)
    service.start()
    launcher.wait()
Beispiel #11
0
def main():
    server.setup_common(possible_topdir, 'engine')

    # NOTE(apavlov): acl.wrap is called here to set up auth_uri value
    # in context by using keystone functionality (mostly to avoid
    # code duplication).
    acl.wrap(None)

    server.setup_sahara_engine()

    ops_server = ops.OpsServer()
    ops_server.start()
Beispiel #12
0
def main():
    server.setup_common(possible_topdir, 'engine')

    # NOTE(apavlov): acl.wrap is called here to set up auth_uri value
    # in context by using keystone functionality (mostly to avoid
    # code duplication).
    acl.wrap(None)

    server.setup_sahara_engine()

    ops_server = ops.OpsServer()
    ops_server.start()
Beispiel #13
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    LOG.warning("""
 __        __               _
 \ \      / /_ _ _ __ _ __ (_)_ __   __ _
  \ \ /\ / / _` | '__| '_ \| | '_ \ / _` |
   \ V  V / (_| | |  | | | | | | | | (_| |
    \_/\_/ \__,_|_|  |_| |_|_|_| |_|\__, |
                                    |___/

Using the sahara-all entry point is now deprecated. Please use the sahara-api
and sahara-engine entry points instead.
    """)
    server.launch_api_service(launcher,
                              server.SaharaWSGIService("sahara-all", app))
Beispiel #14
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    LOG.warning("""
 __        __               _
 \ \      / /_ _ _ __ _ __ (_)_ __   __ _
  \ \ /\ / / _` | '__| '_ \| | '_ \ / _` |
   \ V  V / (_| | |  | | | | | | | | (_| |
    \_/\_/ \__,_|_|  |_| |_|_|_| |_|\__, |
                                    |___/

Using the sahara-all entry point is now deprecated. Please use the sahara-api
and sahara-engine entry points instead.
    """)
    server.launch_api_service(
        launcher, server.SaharaWSGIService("sahara-all", app))