Old leader added to the gcom list causes attempted restart after cold boot

Bug #1838648 reported by David Ames
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Percona Cluster Charm
Fix Released
High
David Ames

Bug Description

The config changed function tries to speed up cluster formation by adding the leader ip as seen in leader-settings.

In the case of a cold boot, the leader has almost certainly changed. This can lead to a non-leader node adding itself to the list. The consequence of which is the mysqld.cnf file changes and the charm mistakenly attempts to restart mysql rather than recognizing it is down.

This impedes the cold start bootstrap process.

David Ames (thedac)
Changed in charm-percona-cluster:
assignee: nobody → David Ames (thedac)
milestone: none → 19.07
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-percona-cluster (master)

Fix proposed to branch: master
Review: https://review.opendev.org/674059

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-percona-cluster (master)

Reviewed: https://review.opendev.org/674059
Committed: https://git.openstack.org/cgit/openstack/charm-percona-cluster/commit/?id=475b889020271dd09003fafc5459d1a2617ce0a5
Submitter: Zuul
Branch: master

commit 475b889020271dd09003fafc5459d1a2617ce0a5
Author: David Ames <email address hidden>
Date: Thu Aug 1 07:55:06 2019 -0700

    Do not add former leader to hosts

    After a cold boot, the leader has likely changed. Do not add this node
    as a former leader to the hosts list. This may cause changes to
    mysqld.cnf and an unwanted attempted restart of mysql.

    Change-Id: I5fc4b7822a4550e53e97655771938a903f92fcb1
    Close-Bug: #1838648

David Ames (thedac)
Changed in charm-percona-cluster:
importance: Undecided → High
status: Triaged → Fix Committed
David Ames (thedac)
Changed in charm-percona-cluster:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.