ironic-inspector/releasenotes/notes/add_node-with-version_id-24f51e5888480aa0.yaml
dparalen 82000e48ec Generate version_id upon add_node
The version_id isn't set during add_node() call. This function is called
when introspection starts for both "new" and existing node_info records.
As a result, race conditions can appear in an HA inspector deployment (see
the refered bug).

This patch makes sure a version_id is generated during the add_node() call
so stale record updates can be detected through the version_id mismatch
between the inspector memory and the DB record.

Change-Id: I422473e888e5e49abb3e598fc2cf2f330620bdcd
Closes-Bug: #1719627
2017-09-26 16:26:25 +02:00

9 lines
332 B
YAML

---
fixes:
- |
A ``version_id`` is now explicitly generated during the
``node_cache.start_introspection/.add_node`` call to avoid race conditions
such as in case of the `two concurrent introspection calls bug`_.
.. _two concurrent introspection calls bug: https://bugs.launchpad.net/ironic-inspector/+bug/1719627