ironic-python-agent/ironic_python_agent
Julia Kreger 5ed520df89 Handle the node being locked
If the node is locked, a lookup cannot be performed when an agent
token needs to be generated, which tends to error like this:

  ironic_python_agent.ironic_api_client [-] Failed looking up node
  with addresses '00:6f:bb:34:b3:4d,00:6f:bb:34:b3:4b' at
  https://172.22.0.2:6385. Error 409: Node
  c25e451b-d2fb-4168-b690-f15bc8365520 is locked by host 172.22.0.2,
  please retry after the current operation is completed..
  Check if inspection has completed.

Problem is, if we keep pounding on the door, we can actually worsen
the situation, and previously we would just just let tenacity
retry.

We will now hold for 30 seconds before proceeding, so we have
hopefully allowed the operation to complete.

Also fixes the error logging to help human's sanity.

Change-Id: I97d3e27e2adb731794a7746737d3788c6e7977a0
2023-08-22 16:47:28 -07:00
..
api Use Werkzeug modern version 2022-04-14 10:47:06 +00:00
cmd Capture the early logging 2021-04-01 11:16:20 -07:00
extensions Log the number of bytes downloaded 2023-07-19 16:20:40 +00:00
hardware_managers Fix nvidia hardware manager url parser to permit https 2023-06-06 15:35:16 +00:00
tests Handle the node being locked 2023-08-22 16:47:28 -07:00
__init__.py [trivial] Fix typo in __init__.py 2021-12-16 22:03:51 +01:00
agent.py Allow md5 to be disabled from the conductor 2023-05-25 07:59:07 -07:00
burnin.py Burn-in: Dynamic network pairing 2022-01-10 11:31:33 +01:00
config.py Fix Bandit errors 2023-06-06 08:34:55 -07:00
dmi_inspector.py Collect processor, memory and BIOS output of dmidecode - follow-up 2017-07-27 07:30:54 -07:00
efi_utils.py Fix UTF-16 result handling for efibootmgr 2023-04-17 09:14:24 -07:00
encoding.py Fix serializing ironic-lib exceptions 2020-07-02 12:18:53 +02:00
errors.py Guard shared device/cluster filesystems 2022-07-19 13:24:03 -07:00
hardware.py Add network interface speed to the inventory 2023-05-03 12:20:35 +02:00
inject_files.py New deploy step for injecting arbitrary files 2021-02-16 16:56:52 +01:00
inspect.py Add jitter to inspection command reporting 2020-03-31 08:13:13 -07:00
inspector.py Fix Bandit errors 2023-06-06 08:34:55 -07:00
ironic_api_client.py Handle the node being locked 2023-08-22 16:47:28 -07:00
netutils.py Deprecate LLDP in inventory in favour of a new collector 2023-04-26 19:33:51 +00:00
numa_inspector.py Skip nic numa_node discovery if it's not assigned to a numa_node 2020-01-17 11:15:35 +01:00
partition_utils.py Drop support for instance netboot 2022-07-07 16:38:22 +02:00
raid_utils.py SoftwareRAID: Enable skipping RAIDS 2022-09-05 20:43:51 +00:00
tls_utils.py Generate TLS certificates with validity time in the past 2020-12-10 16:22:13 +01:00
utils.py Add network interface speed to the inventory 2023-05-03 12:20:35 +02:00
version.py Remove importlib-metadata from requirements 2022-06-21 17:54:39 +02:00