Hook requires manual interaction because ip violates uniqueness

Bug #1785095 reported by Vern Hart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack HA Cluster Charm
New
Undecided
Unassigned

Bug Description

I've seen this happen multiple times with hacluster as a subordinate to multiple charms.

cs:~openstack-charmers-next/hacluster-65
juju 2.4.0
ubuntu 18.04.1
crmsh 3.0.1-3ubuntu1

The hacluster charm will be in an error state saying:

    hook failed: "ha-relation-changed"

When manually running the hook with debug-hooks I get an interactive prompt:

    <gents/unit-hacluster-ceph-radosgw-2/charm# hooks/ha-relation-changed
    active
    WARNING: Resources res_cephrg_eth0_vip,res_cephrg_eth2_vip violate uniqueness for parameter "ip": "172.22.28.137"
    Do you still want to commit (y/n)? y
    Cleaned up res_cephrg_haproxy:0 on juju-68b9ab-1-lxd-1
    Cleaned up res_cephrg_haproxy:1 on juju-68b9ab-2-lxd-1
    Cleaned up res_cephrg_haproxy:2 on juju-68b9ab-3-lxd-0
    Waiting for 3 replies from the CRMd..No messages received in 60 seconds.. aborting
    Cleaned up res_cephrg_eth2_vip on juju-68b9ab-3-lxd-0
    Cleaned up res_cephrg_eth2_vip on juju-68b9ab-1-lxd-1
    Cleaned up res_cephrg_eth2_vip on juju-68b9ab-2-lxd-1
    Cleaned up res_cephrg_eth0_vip on juju-68b9ab-3-lxd-0
    Cleaned up res_cephrg_eth0_vip on juju-68b9ab-1-lxd-1
    Cleaned up res_cephrg_eth0_vip on juju-68b9ab-2-lxd-1
    Waiting for 6 replies from the CRMd....No messages received in 60 seconds.. aborting
    root@juju-68b9ab-3-lxd-0:/var/lib/juju/agents/unit-hacluster-ceph-radosgw-2/charm#

After answering "y" to the question, it completes without error and the charm transitions to active/idle.

Tags: cpe-onsite
Revision history for this message
James Page (james-page) wrote :

This is due to inconsistent interface ordering across the units in the cluster; this is a dupe of bug 1727824

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.