ironic/ironic/tests/unit
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 Accept and use a TLS certificate from the agent 2020-09-09 17:27:30 +02:00
cmd Switch to unittest mock 2020-04-30 19:04:17 +02:00
common update grub2 file name 2021-04-14 01:49:16 +00:00
conductor Wipe agent tokens on inspection start and abort 2021-04-21 12:15:54 +00:00
conf Switch Ironic to openstacksdk for Neutron 2020-08-19 10:48:17 +02: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
objects driver_internal_info in provision notifications 2020-08-25 18:11:04 +00:00
__init__.py Add my new address to .mailmap 2020-04-13 07:29:37 -07:00
policy_fixture.py Add my new address to .mailmap 2020-04-13 07:29:37 -07:00
raid_constants.py Allow specifying target devices for software RAID 2020-03-17 14:31:38 +01:00
stubs.py Switch Ironic to openstacksdk for Neutron 2020-08-19 10:48:17 +02:00
test_base.py Fix pep8 2020-05-12 15:37:38 +02:00