82000e48ec
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
9 lines
332 B
YAML
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
|