The ironic_python_agent.errors
Module¶
-
exception
ironic_python_agent.errors.
BlockDeviceEraseError
(details)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when an error occurs erasing a block device.
-
exception
ironic_python_agent.errors.
BlockDeviceError
(details)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when a block devices causes an unknown error.
-
exception
ironic_python_agent.errors.
CleanVersionMismatch
(agent_version, node_version)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when Ironic and the Agent have different versions.
If the agent version has changed since get_clean_steps was called by the Ironic conductor, it indicates the agent has been updated (either on purpose, or a new agent was deployed and the node was rebooted). Since we cannot know if the upgraded IPA will work with cleaning as it stands (steps could have different priorities, either in IPA or in other Ironic interfaces), we should restart cleaning from the start.
-
exception
ironic_python_agent.errors.
CleaningError
(details=None)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when a cleaning step fails.
-
exception
ironic_python_agent.errors.
CommandExecutionError
(details)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when a command fails to execute.
-
exception
ironic_python_agent.errors.
DeviceNotFound
(details)[source]¶ Bases:
ironic_python_agent.errors.NotFound
Error raised when the device to deploy the image onto is not found.
-
exception
ironic_python_agent.errors.
HardwareManagerMethodNotFound
(method)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when all HardwareManagers fail to handle a method.
-
exception
ironic_python_agent.errors.
HardwareManagerNotFound
(details=None)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when no valid HardwareManager can be found.
-
exception
ironic_python_agent.errors.
HeartbeatConflictError
(details)[source]¶ Bases:
ironic_python_agent.errors.IronicAPIError
ConflictError raised when a heartbeat to the agent API fails.
-
exception
ironic_python_agent.errors.
HeartbeatError
(details)[source]¶ Bases:
ironic_python_agent.errors.IronicAPIError
Error raised when a heartbeat to the agent API fails.
-
exception
ironic_python_agent.errors.
ISCSICommandError
(error_msg, exit_code, stdout, stderr)[source]¶ Bases:
ironic_python_agent.errors.ISCSIError
Error executing TGT command.
-
exception
ironic_python_agent.errors.
ISCSIError
(error_msg)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when an image cannot be written to a device.
-
exception
ironic_python_agent.errors.
ImageChecksumError
(image_id, image_location, checksum, calculated_checksum)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when an image fails to verify against its checksum.
-
exception
ironic_python_agent.errors.
ImageDownloadError
(image_id, msg)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when an image cannot be downloaded.
-
exception
ironic_python_agent.errors.
ImageWriteError
(device, exit_code, stdout, stderr)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when an image cannot be written to a device.
-
exception
ironic_python_agent.errors.
IncompatibleHardwareMethodError
(details=None)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when HardwareManager method incompatible with hardware.
-
exception
ironic_python_agent.errors.
IncompatibleNumaFormatError
(details=None, *args, **kwargs)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when unexpected format data in NUMA node.
-
exception
ironic_python_agent.errors.
InspectionError
[source]¶ Bases:
exceptions.Exception
Failure during inspection.
-
exception
ironic_python_agent.errors.
InvalidCommandError
(details)[source]¶ Bases:
ironic_python_agent.errors.InvalidContentError
Error which is raised when an unknown command is issued.
-
exception
ironic_python_agent.errors.
InvalidCommandParamsError
(details)[source]¶ Bases:
ironic_python_agent.errors.InvalidContentError
Error which is raised when command parameters are invalid.
-
exception
ironic_python_agent.errors.
InvalidContentError
(details)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error which occurs when a user supplies invalid content.
Either because that content cannot be parsed according to the advertised Content-Type, or due to a content validation error.
-
exception
ironic_python_agent.errors.
IronicAPIError
(details)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when a call to the agent API fails.
-
exception
ironic_python_agent.errors.
LookupAgentIPError
(details)[source]¶ Bases:
ironic_python_agent.errors.IronicAPIError
Error raised when automatic IP lookup fails.
-
exception
ironic_python_agent.errors.
LookupNodeError
(details)[source]¶ Bases:
ironic_python_agent.errors.IronicAPIError
Error raised when the node lookup to the Ironic API fails.
-
exception
ironic_python_agent.errors.
NotFound
(details=None, *args, **kwargs)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error which occurs if a non-existent API endpoint is called.
-
exception
ironic_python_agent.errors.
RESTError
(details=None, *args, **kwargs)[source]¶ Bases:
exceptions.Exception
,ironic_python_agent.encoding.Serializable
Base class for errors generated in ironic-python-client.
-
exception
ironic_python_agent.errors.
SystemRebootError
(exit_code, stdout, stderr)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when a system cannot reboot.
-
exception
ironic_python_agent.errors.
UnknownNodeError
(details=None)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when the agent is not associated with an Ironic node.
-
exception
ironic_python_agent.errors.
VirtualMediaBootError
(details)[source]¶ Bases:
ironic_python_agent.errors.RESTError
Error raised when virtual media device cannot be found for config.