¡@

Home 

OpenStack Study: api.py

OpenStack Index

**** CubicPower OpenStack Study ****

def main():

    config.parse_args(sys.argv)

    logging.setup("nova")

    utils.monkey_patch()

    gmr.TextGuruMeditation.setup_autorun(version)

    launcher = service.process_launcher()

    for api in CONF.enabled_apis:

        should_use_ssl = api in CONF.enabled_ssl_apis

        if api == 'ec2':

            server = service.WSGIService(api, use_ssl=should_use_ssl,

                                         max_url_len=16384)

        else:

            server = service.WSGIService(api, use_ssl=should_use_ssl)

        launcher.launch_service(server, workers=server.workers or 1)

    launcher.wait()