def main():
    meta.register_meta_conf_opts(meta.SHARED_OPTS)
    meta.register_meta_conf_opts(meta.UNIX_DOMAIN_METADATA_PROXY_OPTS)
    meta.register_meta_conf_opts(meta.METADATA_PROXY_HANDLER_OPTS)
    cache.register_oslo_configs(cfg.CONF)
    agent_conf.register_agent_state_opts_helper(cfg.CONF)
    config.init(sys.argv[1:])
    config.setup_logging()
    utils.log_opt_values(LOG)
    proxy = agent.UnixDomainMetadataProxy(cfg.CONF)
    proxy.run()
Example #2
0
def main():
    cfg.CONF.register_opts(metadata_conf.SHARED_OPTS)
    cfg.CONF.register_opts(metadata_conf.UNIX_DOMAIN_METADATA_PROXY_OPTS)
    cfg.CONF.register_opts(metadata_conf.METADATA_PROXY_HANDLER_OPTS)
    cache.register_oslo_configs(cfg.CONF)
    cfg.CONF.set_default(name='cache_url', default='memory://?default_ttl=5')
    agent_conf.register_agent_state_opts_helper(cfg.CONF)
    config.init(sys.argv[1:])
    config.setup_logging()
    utils.log_opt_values(LOG)
    proxy = agent.UnixDomainMetadataProxy(cfg.CONF)
    proxy.run()
Example #3
0
 def setUp(self):
     super(ConfFixture, self).setUp()
     meta_conf.register_meta_conf_opts(
         meta_conf.METADATA_PROXY_HANDLER_OPTS, self.conf)
     self.config(auth_ca_cert=None,
                 nova_metadata_host='9.9.9.9',
                 nova_metadata_port=8775,
                 metadata_proxy_shared_secret='secret',
                 nova_metadata_protocol='http',
                 nova_metadata_insecure=True,
                 nova_client_cert='nova_cert',
                 nova_client_priv_key='nova_priv_key')
     cache.register_oslo_configs(self.conf)
Example #4
0
 def setUp(self):
     super(ConfFixture, self).setUp()
     meta_conf.register_meta_conf_opts(
         meta_conf.METADATA_PROXY_HANDLER_OPTS, self.conf)
     self.config(auth_ca_cert=None,
                 nova_metadata_host='9.9.9.9',
                 nova_metadata_port=8775,
                 metadata_proxy_shared_secret='secret',
                 nova_metadata_protocol='http',
                 nova_metadata_insecure=True,
                 nova_client_cert='nova_cert',
                 nova_client_priv_key='nova_priv_key')
     cache.register_oslo_configs(self.conf)
 def setUp(self):
     super(CacheConfFixture, self).setUp()
     cache.register_oslo_configs(self.conf)
     self.config(enabled=True, group="cache")
 def setUp(self):
     super(CacheConfFixture, self).setUp()
     cache.register_oslo_configs(self.conf)
     self.config(enabled=True, group='cache')