ironic/ironic/tests
Dmitry Tantsur fce4cc11bc Fix deployment when executing a command fails after the command starts
If the agent accepts a command, but is unable to reply to Ironic (which
sporadically happens before of the eventlet's TLS implementation), we
currently retry the request and fail because the command is already
executing. Ironic now detects this situation by checking the list of
executing commands after receiving a connection error. If the requested
command is last one, we assume that the command request succeeded.

Ideally, we should pass a request ID to IPA and then compare it. Such
a change would affect the API contract between the agent and Ironic
and thus would not be backportable.

Change-Id: I2ea21c9ec440fa7ddf8578cf7b34d6d0ebbb5dc8
(cherry picked from commit abfe383cc3)
2021-05-07 18:03:47 +02:00
..
functional Prepare for functional testing 2015-09-28 21:27:01 +00:00
json_samples Add `network_data` field to ironic node object 2020-05-05 15:57:36 +02:00
unit Fix deployment when executing a command fails after the command starts 2021-05-07 18:03:47 +02:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
base.py Add agent_status and agent_status_message params to heartbeat 2021-03-31 14:20:39 -07:00