no migration-threshold for the haproxy resource

Bug #1810918 reported by Andrea Ieri
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron API Charm
Triaged
Medium
Unassigned

Bug Description

Since the metaparameter migration-threshold is left to the default of INFINITY for the haproxy resource, crm will always report all instances as running, even if the haproxy service may not be functional.

How to reproduce:
* block haproxy from running (e.g. service haproxy stop ; chmod -x /usr/sbin/haproxy

Expected result:
* res_neutron_haproxy will be in a stopped state after a few monitoring cycles

Current result:
* res_neutron_haproxy remains in started state, regardless of the value of fail-count

This bug may seem harmless, as separate monitoring should be alerting of haproxy failures, but having resources fail and be marked as stopped in pacemaker is necessary for colocation constraints, as they only apply based on whether a dependent resource is started/stopped, and not just on monitor action failures.

NOTE: I experienced this on neutron-apis, but this bug appears to affect all principal charms

James Page (james-page)
Changed in charm-neutron-api:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 19.04
David Ames (thedac)
Changed in charm-neutron-api:
milestone: 19.04 → 19.07
David Ames (thedac)
Changed in charm-neutron-api:
milestone: 19.07 → 19.10
David Ames (thedac)
Changed in charm-neutron-api:
milestone: 19.10 → 20.01
James Page (james-page)
Changed in charm-neutron-api:
milestone: 20.01 → 20.05
David Ames (thedac)
Changed in charm-neutron-api:
milestone: 20.05 → 20.08
James Page (james-page)
Changed in charm-neutron-api:
milestone: 20.08 → none
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.