Exemplo n.º 1
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')
Exemplo n.º 2
0
 def setUp(self):
     super(ConfFixture, self).setUp()
     meta_conf.register_meta_conf_opts(meta_conf.SHARED_OPTS, self.conf)
     meta_conf.register_meta_conf_opts(
         meta_conf.UNIX_DOMAIN_METADATA_PROXY_OPTS, self.conf)
     meta_conf.register_meta_conf_opts(
         meta_conf.METADATA_PROXY_HANDLER_OPTS, self.conf)
     meta_conf.register_meta_conf_opts(meta_conf.OVS_OPTS,
                                       self.conf,
                                       group='ovs')
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)
    meta.register_meta_conf_opts(meta.OVS_OPTS, group='ovs')
    config.init(sys.argv[1:])
    config.setup_logging()
    utils.log_opt_values(LOG)

    agt = agent.MetadataAgent(cfg.CONF)
    agt.start()
Exemplo n.º 4
0
    def setUp(self):
        super(TestMetadataDriverProcess, self).setUp()
        mock.patch('eventlet.spawn').start()

        meta_conf.register_meta_conf_opts(meta_conf.SHARED_OPTS, cfg.CONF)