Comment 2 for bug 1719627

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-inspector (master)

Reviewed: https://review.openstack.org/507559
Committed: https://git.openstack.org/cgit/openstack/ironic-inspector/commit/?id=82000e48ecdaa5738f6a7e69d94386977e714493
Submitter: Zuul
Branch: master

commit 82000e48ecdaa5738f6a7e69d94386977e714493
Author: dparalen <email address hidden>
Date: Tue Sep 26 16:09:13 2017 +0200

    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