ironic/releasenotes/notes/consider_embedded_ipa_error_codes-c8fdfaa9e6a1ed06.yaml
Julia Kreger bfeef067aa Fix agent_client handling of embedded errors
The agent_client may get a general "command_error" field
returned to it upon commands and the agent may not properly
sinal that the command failed because we are reliant upon
the same data elsewhere in the ironic/agent interaction.

This resulted in the case where the embedded error signaled that
the error was method compatability as opposed to the actual method
command error.

This could cause higher level failures and prevent fallback logic
from detecting that we could try a different command.

We now consider the error type, and raise the appropriate exception
to signal that the issue may be an API compatability issue.

Change-Id: Ia2f63bd853632e1d7138901cf23fde1e261fc4d6
2020-04-24 09:55:09 -07:00

10 lines
418 B
YAML

---
fixes:
- |
Fixes an issue in the ``ironic-python-agent`` client code
where a command exception may not be captured in the interaction
with the agent rest API. The client code would return the resulting
error message and a static error code. We now look with-in the error
to detect if the error may be a compatability error to raise the
appropriate exception for fallback logic to engage.