Comment 14 for bug 1617400

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/465674
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=3e8fe44dbe77a4b6595f3fe0aac5d7b62d777e1a
Submitter: Jenkins
Branch: stable/mitaka

commit 3e8fe44dbe77a4b6595f3fe0aac5d7b62d777e1a
Author: Vladimir Kuklin <email address hidden>
Date: Wed May 17 19:42:09 2017 +0300

    Introduce critical section on master election process

    This commit adds a node attribute with value which
    means the timestamp of when the election process started.
    If we have election on any node in process we sleep for a while
    unless the attribute is outdated.

    We start the election only if the attributes for all nodes are outdated
    or if they do not exist.

    This prevents us from hitting rare condition when several nodes
    start simultaneously but do not agree on the master node due to
    race condition in MySQL start time and pacemaker attribute setting

    Change-Id: I7f4728b75ce5577338dff182634b608823cff74e
    Closes-bug: #1617400
    Co-Authored-By: Fedor Zhadaev <email address hidden>