~fnordahl/charm-helpers/fix-occasional-keyerror

Viewing all changes in revision 691.

  • Committer: Liam Young
  • Date: 2017-02-16 10:36:12 UTC
  • mfrom: (690.2.2 charm-helpers)
  • Revision ID: liam.young@canonical.com-20170216103612-tvt0jaxwbxxcjspy
[thedac, gnuoy, r=ajkavanagh] expect_ha function checks for VIP or dns-ha settings

In OpenStack charms that relate to hacluster it may take time for
hacluster to complete. In the meantime the charm needs a way to be
informed to wait for hacluster. Simply checking for the relation is
too racey. This function checks for tell tale configuration
parameters. The charm can then react accordingly.

Partial-bug: #1661392

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: