def parse_args(argv, default_config_files=None): rpc.set_defaults(control_exchange='nca47') cfg.CONF(argv[1:], project='nca47', # version=version.version_info.release_string(), default_config_files=default_config_files) rpc.init(cfg.CONF)
def __init__(self, threads=None): threads = threads or 1000 super(Service, self).__init__(threads) self._host = CONF.host # self._service_config = CONF['service:%s' % self.service_name] # NOTE(kiall): All services need RPC initialized, as this is used # for clients AND servers. Hence, this is common to # all Designate services. if not rpc.initialized(): rpc.init(CONF)
def __init__(self, topic='dns_manager'): rpc.init(CONF) target = messaging.Target(topic=topic, version=self.RPC_API_VERSION) self.client = rpc.get_client(target, version_cap=self.RPC_API_VERSION)