colocation constraint missing

Bug #1808166 reported by Liam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack HA Cluster Charm
Fix Released
High
Liam Young

Bug Description

On deploying percona cluster with hacluster subordinate the colocation constraint was missing from the pacemaker configuration.

The lead hacluster unit shows the following error:

2018-12-12 14:20:05 DEBUG hanode-relation-changed ERROR: element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "cl_mysql_monitor"
2018-12-12 14:20:05 DEBUG hanode-relation-changed element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "cl_mysql_monitor"
2018-12-12 14:20:05 DEBUG hanode-relation-changed Errors found during check: config not valid
2018-12-12 14:20:05 DEBUG hanode-relation-changed WARNING: colo_percona_cluster: resource cl_mysql_monitor does not exist

It looks like the charm attempts to create the constraint before the clone resource has been created. Subsequently manually running the ha-relation-changed hook in a debug-hooks session causes the constraint to be created.

Liam Young (gnuoy)
Changed in charm-hacluster:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Liam Young (gnuoy)
milestone: none → 19.04
Changed in charm-hacluster:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-hacluster (master)

Reviewed: https://review.openstack.org/624714
Committed: https://git.openstack.org/cgit/openstack/charm-hacluster/commit/?id=2ca245127e57f13aef9083d6a0e0fbef4c48041a
Submitter: Zuul
Branch: master

commit 2ca245127e57f13aef9083d6a0e0fbef4c48041a
Author: Liam Young <email address hidden>
Date: Wed Dec 12 14:43:56 2018 +0000

    Reorder colocation creation

    A colocation constraint may reference a clone resource (which
    percona-cluster charm does). So, the colocation must be created
    after the clones.

    Closes-Bug: #1808166
    Change-Id: I304df954b2f81477535fe64687af11055b932c27

Changed in charm-hacluster:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-hacluster:
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.