commit 16dee87e24ee1a0d6e37b5fa7b91c303f7c912db
Author: Ralf Haferkamp <rha...@suse.de>
Date:   Tue Aug 22 15:47:47 2017 +0200

    galera: Honor "safe_to_bootstrap" flag in grastate.dat

    With version 3.19 galera introduced the "safe_to_bootstrap" flag to the
    grastate.dat file [1]. When all nodes of a cluster are shutdown cleanly,
    the last node shutting down gets this flag set to 1. (All others get a
    0).

    This commit enhances the galera resource agent to make use of that flag
    when selecting an appropriate node for bootstrapping the cluster.  When
    any of the cluster nodes has the "safe_to_bootstrap" flag set to 1, that
    node is immediately selected as the boostrap node of the cluster.

    When all nodes have safe_to_bootstrap=0 or the flag is not present the
    current bootstrap behaviour mostly unchanged. We just set
    "safe_to_bootstrap" to 1 in grastate.dat on the selected bootstrap node
    to a allow for galera to start, as outlined in the galera documentation
    [2].

    Fixes: #915

    [1] 
http://galeracluster.com/2016/11/introducing-the-safe-to-bootstrap-feature-in-galera-cluster
    [2] 
http://galeracluster.com/documentation-webpages/restartingcluster.html#safe-to-bootstrap-protection

$ git describe --tags 16dee87e24ee1a0d6e37b5fa7b91c303f7c912db
v4.0.1-107-g16dee87e

resource-agents | 1:3.9.2-5ubuntu4             | precise         |
resource-agents | 1:3.9.2-5ubuntu4.1           | precise-updates |
resource-agents | 1:3.9.3+git20121009-3ubuntu2 | trusty          |
resource-agents | 1:3.9.7-1                    | xenial          |
resource-agents | 1:3.9.7-1ubuntu1.1           | xenial-updates  |

not affected:

resource-agents | 1:4.1.0~rc1-1ubuntu1         | bionic          |
resource-agents | 1:4.1.0~rc1-1ubuntu1.2       | bionic-updates  |
resource-agents | 1:4.2.0-1ubuntu1             | disco           |
resource-agents | 1:4.2.0-1ubuntu1.1           | disco-updates   |
resource-agents | 1:4.2.0-1ubuntu2             | eoan            |
resource-agents | 1:4.4.0-3ubuntu1             | focal           |

** Also affects: resource-agents (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: resource-agents (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Also affects: resource-agents (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: resource-agents (Ubuntu Trusty)
       Status: New => Won't Fix

** Changed in: resource-agents (Ubuntu Xenial)
       Status: New => Confirmed

** Changed in: resource-agents (Ubuntu Bionic)
       Status: New => Fix Released

** Changed in: resource-agents (Ubuntu)
       Status: Triaged => Fix Released

** Changed in: resource-agents (Ubuntu)
     Assignee: Rafael David Tinoco (rafaeldtinoco) => (unassigned)

** Changed in: resource-agents (Ubuntu)
   Importance: Medium => Undecided

** Tags added: block-proposed-xenial

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1789527

Title:
  Galera agent doesn't work when grastate.dat contains safe_to_bootstrap

Status in resource-agents package in Ubuntu:
  Fix Released
Status in resource-agents source package in Trusty:
  Won't Fix
Status in resource-agents source package in Xenial:
  Confirmed
Status in resource-agents source package in Bionic:
  Fix Released

Bug description:
  Galera resource agent is not able to put mysql up and master even if
  safe_to_bootstrap flag in grastate.dat is set to 1.

  * res_percona_promote_0 on 09fde2-2 'unknown error' (1): call=1373,
  status=complete, exitreason='MySQL server failed to start (pid=2432)
  (rc=0), please check your installation',

  
  The resource agent is not able to handle safe_to_bootstrap feature in galera: 
http://galeracluster.com/2016/11/introducing-the-safe-to-bootstrap-feature-in-galera-cluster/

  I use percona cluster database which uses the same galera mechanism
  for clustering.

  Packages I use in Xenial:

  resource-agents   3.9.7-1
  percona-xtradb-cluster-server-5.6 5.6.37-26.21-0ubuntu0.16.04.2
  pacemaker 1.1.14-2ubuntu1.4
  corosync  2.3.5-3ubuntu2.1

  A workaround exist in : 
https://github.com/ClusterLabs/resource-agents/issues/915
  A fix also exist but it was not addressed to xenial package: 
https://github.com/ClusterLabs/resource-agents/pull/1022

  Is it possible to add this fix on the recent package of resource-
  agents in Xenial ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resource-agents/+bug/1789527/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to     : group.of.nepali.translators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help   : https://help.launchpad.net/ListHelp

Reply via email to