¡@

Home 

OpenStack Study: api_metadata.py

OpenStack Index

**** CubicPower OpenStack Study ****

def main():

    config.parse_args(sys.argv)

    logging.setup("nova")

    utils.monkey_patch()

    gmr.TextGuruMeditation.setup_autorun(version)

    if not CONF.conductor.use_local:

        objects_base.NovaObject.indirection_api = \

            conductor_rpcapi.ConductorAPI()

    should_use_ssl = 'metadata' in CONF.enabled_ssl_apis

    server = service.WSGIService('metadata', use_ssl=should_use_ssl)

    service.serve(server, workers=server.workers)

    service.wait()