ironic/ironic/tests
Dmitry Tantsur 6787142617 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 19:06:57 +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 19:06:57 +02:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
base.py autospec for classmethods and staticmethods for Python < 3.7.4 2020-09-24 11:06:27 +02:00