def start(self): """ Method to start the agent """ self.hv = None self._config = AgentConfig() self._setup_logging() self._logger.info("Startup config: %s" % self._config.options) # Register some basic services self._register_services() # Load plugins self.plugins = load_plugins() # Setup the different thrift services and their handlers. self._initialize_thrift_service() # Only register with the chairman if all the bootstrap config is # available which includes things like availability zone and the # chairman config itself. if (self._config.bootstrap_ready): self._registrant.start_register() # Start the bootstrap checker thread to handle config updates. self._logger.info("Starting the bootstrap config poll thread") BootstrapPoller(self._config).start() # Enable thrift non blocking server to serve requests. self._start_thrift_service()
def start(self): """ Method to start the agent """ self.hv = None self._config = AgentConfig() self._setup_logging() self._logger.info("Startup config: %s" % self._config.options) # Register some basic services self._register_services() # Load plugins self.plugins = load_plugins() # Setup the different thrift services and their handlers. self._initialize_thrift_service() # Start the bootstrap checker thread to handle config updates. self._logger.info("Starting the bootstrap config poll thread") BootstrapPoller(self._config).start() # Enable thrift non blocking server to serve requests. self._start_thrift_service()