Merge lp://qastaging/~gandelman-a/charms/precise/hacluster/stontih into lp://qastaging/~openstack-charmers/charms/quantal/hacluster/trunk

Proposed by Adam Gandelman
Status: Merged
Merged at revision: 9
Proposed branch: lp://qastaging/~gandelman-a/charms/precise/hacluster/stontih
Merge into: lp://qastaging/~openstack-charmers/charms/quantal/hacluster/trunk
Diff against target: 254 lines (+188/-3)
5 files modified
config.yaml (+13/-0)
hooks/hooks.py (+60/-2)
hooks/maas.py (+64/-0)
hooks/pcmk.py (+50/-0)
revision (+1/-1)
To merge this branch: bzr merge lp://qastaging/~gandelman-a/charms/precise/hacluster/stontih
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+144829@code.qastaging.launchpad.net

Description of the change

This adds support for configuring CRM-level STONITH fencing using IMPI. It is tightly coupled with MAAS, and requires maas creds and endpoint to be set as config options in the charm.

When stonith is enabled, the charm will install the maas-cli package [1], and query the server for the node inventory using the configured credentials. For every node in the cluster, the corresponding power_parameters are parsed from the node inventory and a stonith resource is configured in the CRM, with a location constraint to prevent it from running on the node it is monitoring.

The
This can be configured in charm config at deployment time, or may be enabled post-deploy using 'juju set' on the relevant config parameters, eg:

juju set hacluster stonith_enabled=True maas_url=http://192.168.95.1/MAAS/api/1.0/ maas_credentials="$maas:credential:token"

(note credentials and endpoints are the same as those listed with 'maas-cli list' from the provisioning / admin node)

The charm currently only supports setting up the IPMI stonith agent, but if MAAS supports other flavors of power management, the charm could be extended to cover those cases as wel.

[1] maas-cli isn't in 12.04, if there is no installation candidate the charm will setup access to the maas stable PPA.

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches