congress.cfg_validator.agent.rpc module

congress.cfg_validator.agent.rpc module

Handling of RPC

Communication with the datasource driver on the config validator agent

class congress.cfg_validator.agent.rpc.AgentService(topic, endpoints, conf=None)

Bases: oslo_service.service.Service

Definition of the agent service implemented as an RPC endpoint.

start()

Start a service.

stop(graceful=False)

Stop a service.

Parameters:graceful – indicates whether to wait for all threads to finish or terminate them instantly
class congress.cfg_validator.agent.rpc.ValidatorDriverClient(topic='congress-service-config-bus')

Bases: object

RPC Proxy used by the agent to access the driver.

process_configs_hashes(context, hashes, host)

Sends a list of config files hashes to the driver for processing

Parameters:
  • hashes – the array of hashes
  • host – the host they come from.
process_templates_hashes(context, hashes, host)

Sends a list of template hashes to the driver for processing

Parameters:
  • hashes – the array of hashes
  • host – the host they come from.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.