ironic/ironic
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
..
api Handle patching node /protected value with None 2020-09-29 13:55:36 +02:00
cmd Deprecate the iscsi deploy interface 2020-09-22 15:39:36 +02:00
common Inherit InvalidImageRef from InvalidParameterValue 2021-05-05 12:37:25 +00:00
conductor Wipe agent tokens on inspection start and abort 2021-04-21 12:15:54 +00:00
conf Limit the default value of [api]api_workers to 4 2020-11-18 07:52:33 +00:00
db Don't migrate away from iscsi if it is the default 2020-09-30 15:03:59 +01:00
dhcp Switch Ironic to openstacksdk for Neutron 2020-08-19 10:48:17 +02:00
drivers Fix deployment when executing a command fails after the command starts 2021-05-07 19:06:57 +02:00
hacking Fix the remaining hacking issues 2020-03-31 13:40:00 +00:00
objects driver_internal_info in provision notifications 2020-08-25 18:11:04 +00:00
tests Fix deployment when executing a command fails after the command starts 2021-05-07 19:06:57 +02:00
__init__.py Move eventlet monkey patch code 2017-03-02 13:48:18 +02:00
version.py