HAproxy goes through crm vip setup and is restarted every 5 minutes when using reactive charms

Bug #1754149 reported by Jason Hobbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Designate Charm
Fix Released
High
James Page

Bug Description

grep'ing the designate hacluster unit logs for "Deleting Resources" shows the charm repeatedly going through crm vip setup:

http://paste.ubuntu.com/p/NDxDNkJwD4/

Bundle:
http://paste.ubuntu.com/p/v3YjnrYVVm/

Revision history for this message
Jason Hobbs (jason-hobbs) wrote :
Tytus Kurek (tkurek)
tags: added: 4010 cpe-onsite
Changed in charm-designate:
status: New → Confirmed
Tytus Kurek (tkurek)
summary: - designate's haproxy never settles
+ HAproxy goes through crm vip setup and is restarted every 5 minutes when
+ using reactive charms
Revision history for this message
Tytus Kurek (tkurek) wrote :

As discussed in bug 1737776 I do confirm I can see the same behavior in non patched environment.

This is a bug in charm-interface-hacluster. The root cause is "json_init_services" relation data being filled in with "haproxy" every time the "manage_resources" function is run.

I have a patch for it and will submit it for a review shortly.

Changed in charm-designate:
status: Confirmed → In Progress
assignee: nobody → Tytus Kurek (tkurek)
Revision history for this message
Tytus Kurek (tkurek) wrote :

So it looks like the issue has been already solved by the following commit:

https://github.com/openstack/charm-interface-hacluster/commit/44c900958f9ab9d7e5c1c104b53eb651e1e444c7

Changed in charm-designate:
assignee: Tytus Kurek (tkurek) → nobody
status: In Progress → Invalid
Revision history for this message
Jason Hobbs (jason-hobbs) wrote :

We're still hitting this on -next charms as of about an hour ago.

Changed in charm-designate:
status: Invalid → New
Revision history for this message
Tytus Kurek (tkurek) wrote :

For me the issue is fixed when using the following charm version:

cs:~openstack-charmers-next/designate-75

which contains the patch to charm-interface-hacluster.

Revision history for this message
Jason Hobbs (jason-hobbs) wrote : Re: [Bug 1754149] Re: HAproxy goes through crm vip setup and is restarted every 5 minutes when using reactive charms

It may be that we are hitting separate issues, then.

On Fri, Mar 9, 2018 at 3:03 AM, Tytus Kurek <email address hidden> wrote:
> For me the issue is fixed when using the following charm version:
>
> cs:~openstack-charmers-next/designate-75
>
> which contains the patch to charm-interface-hacluster.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1754149
>
> Title:
> HAproxy goes through crm vip setup and is restarted every 5 minutes
> when using reactive charms
>
> Status in OpenStack Designate Charm:
> New
>
> Bug description:
> grep'ing the designate hacluster unit logs for "Deleting Resources"
> shows the charm repeatedly going through crm vip setup:
>
> http://paste.ubuntu.com/p/NDxDNkJwD4/
>
> Bundle:
> http://paste.ubuntu.com/p/v3YjnrYVVm/
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/charm-designate/+bug/1754149/+subscriptions

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

Marking this as Invalid - Jason if you think you have something similar please raise a new bug report with a full juju crashdump.

Thanks!

Changed in charm-designate:
status: New → Invalid
Revision history for this message
Jason Hobbs (jason-hobbs) wrote :

Um, I did file this as a new bug with a with a full juju crashdump. I don't get it! Why would I open another one?

Changed in charm-designate:
status: Invalid → New
Revision history for this message
James Page (james-page) wrote :

Charm version: cs:~openstack-charmers-next/designate-70

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

Working to try to reproduce at tip of master.

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

OK so this is different to the original bug in the hacluster relations for reactive charms, where services got restarted every 5 minutes (on update-status calls).

In this case the log data are someone random in timing but > 15-20 mins.

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

Right then:

designate_2/var/log/juju/unit-hacluster-designate-0.log:2018-03-07 07:34:30 DEBUG juju-log ha:59: Configuring Groups: {u'grp_designate_vips': u'res_designate_eth0_vip res_designate_eth1_vip'}
designate_2/var/log/juju/unit-hacluster-designate-0.log:2018-03-07 08:25:58 DEBUG juju-log ha:59: Configuring Groups: {u'grp_designate_vips': u'res_designate_eth1_vip res_designate_eth0_vip'}
designate_2/var/log/juju/unit-hacluster-designate-0.log:2018-03-07 09:07:16 DEBUG juju-log ha:59: Configuring Groups: {u'grp_designate_vips': u'res_designate_eth0_vip res_designate_eth1_vip'}

The order of the vips in the group configuration for vips keeps changing - this is yet-another py3 dict iteration type problem in the hacluster interface.

Changed in charm-designate:
status: New → Confirmed
importance: Undecided → High
milestone: none → 18.05
Revision history for this message
James Page (james-page) wrote :

This will only happen in deployments with multiple VIP's

Revision history for this message
James Page (james-page) wrote :
James Page (james-page)
Changed in charm-designate:
status: Confirmed → In Progress
assignee: nobody → James Page (james-page)
Revision history for this message
Corey Bryant (corey.bryant) wrote :

I'm going to mark this as Fix Committed. The corresponding fix to charm-interface-hacluster landed on Mar 22 and charm-designate's last commit to master was Apr 2. The charm was rebuilt and I confirmed the rebuilt version is published to the charm store at https://jujucharms.com/u/openstack-charmers-next/designate/.

Changed in charm-designate:
status: In Progress → Fix Committed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Confirmed also that James' fix is in https://jujucharms.com/u/openstack-charmers-next/designate/ at hooks/relations/hacluster/requires.py.

David Ames (thedac)
Changed in charm-designate:
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.