ironic_python_agent.agent.
Host
(hostname, port)¶Bases: tuple
hostname
¶Alias for field number 0
port
¶Alias for field number 1
ironic_python_agent.agent.
IronicPythonAgent
(api_url, advertise_address, listen_address, ip_lookup_attempts, ip_lookup_sleep, network_interface, lookup_timeout, lookup_interval, standalone, agent_token, hardware_initialization_delay=0, advertise_protocol='http')[source]¶Bases: ironic_python_agent.extensions.base.ExecuteCommandMixin
Class for base agent functionality.
get_command_result
(result_id)[source]¶Get a specific command result by ID.
a ironic_python_agent.extensions.base.
BaseCommandResult
object.
RequestedObjectNotFoundError if command with the given ID is not found.
get_node_uuid
()[source]¶Get UUID for Ironic node.
If the agent has not yet heartbeated to Ironic, it will not have the UUID and this will raise an exception.
A string containing the UUID for the Ironic node.
UnknownNodeError if UUID is unknown.
get_status
()[source]¶Retrieve a serializable status.
a ironic_python_agent.agent.IronicPythonAgent
instance describing the agent’s status.
list_command_results
()[source]¶Get a list of command results.
list of ironic_python_agent.extensions.base.
BaseCommandResult
objects.
set_agent_advertise_addr
()[source]¶Set advertised IP address for the agent, if not already set.
If agent’s advertised IP address is still default (None), try to find a better one. If the agent’s network interface is None, replace that as well.
LookupAgentIPError if an IP address could not be found
ironic_python_agent.agent.
IronicPythonAgentHeartbeater
(agent)[source]¶Bases: threading.Thread
Thread that periodically heartbeats to Ironic.
max_jitter_multiplier
= 0.6¶min_jitter_multiplier
= 0.3¶ironic_python_agent.agent.
IronicPythonAgentStatus
(started_at, version)[source]¶Bases: ironic_python_agent.encoding.Serializable
Represents the status of an agent.
serializable_fields
= ('started_at', 'version')¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.