bacfec8647
This commit extends the stonith generation logic to allow operators to make use of fencing levels. Given a fence.yaml file like the following: parameter_defaults: EnableFencing: true FencingConfig: devices: level1: - agent: fence_agent1 host_mac: aa:bb:cc:dd:ee:ff params: someparam: somevalue level2: - agent: fence_agent2 host_mac: aa:bb:cc:dd:ee:ff params: someotherparam: someothervalue The code iterates over the "levelX" key and creates the respective stonith resources and adds them to the specified stonith level. It should be backwards compatible since it checks if "devices" is an array (no level specified) and reconducts this case to level=1. Example results below. * without levels:* hieradata: "tripleo::fencing::config": { "devices": [ { "agent": "fence_ipmilan", "host_mac": "e4:43:4b:4b:c8:19", [root@overcloud-controller-0]# pcs status ... stonith-fence_ipmilan-e4434b4bc819 (stonith:fence_ipmilan): Started overcloud-controller-1 [root@overcloud-controller-0]# pcs stonith level Target: overcloud-controller-0 Level 1 - stonith-fence_ipmilan-e4434b4bc819 * with levels: * hieradata: "tripleo::fencing::config": { "devices": { "level1": [ { "agent": "fence_ipmilan", "host_mac": "e4:43:4b:4b:c8:19", ... "level2": [ { "agent": "fence_kdump", "host_mac": "e4:43:4b:4b:c8:19", [root@overcloud-controller-0 ]# pcs status ... stonith-fence_ipmilan-e4434b4bc819 (stonith:fence_ipmilan): Started overcloud-controller-1 stonith-fence_kdump-e4434b4bc819 (stonith:fence_kdump): Started overcloud-controller-2 [root@overcloud-controller-0 ]# pcs stonith level Target: overcloud-controller-0 Level 1 - stonith-fence_ipmilan-e4434b4bc819 Level 2 - stonith-fence_kdump-e4434b4bc819 Change-Id: I42033be840ba41e9944af65815a63059834144e9 |
||
---|---|---|
doc | ||
files | ||
lib | ||
manifests | ||
releasenotes | ||
spec | ||
templates | ||
zuul.d | ||
.gitignore | ||
.gitreview | ||
.sync.yml | ||
Gemfile | ||
LICENSE | ||
Puppetfile_extras | ||
README.md | ||
Rakefile | ||
bindep.txt | ||
metadata.json | ||
setup.cfg | ||
setup.py | ||
tox.ini |
README.md
Team and repository tags
puppet-tripleo
Lightweight composition layer for Puppet TripleO.
Contributing
- Free software: Apache License (2.0)
- Source: http://git.openstack.org/cgit/openstack/puppet-tripleo
- Bugs: http://bugs.launchpad.net/tripleo (tag: puppet)
- Documentation:
- TripleO: https://docs.openstack.org/tripleo-docs/latest/
- Testing with puppet: https://docs.openstack.org/puppet-openstack-guide/latest/contributor/testing.html
- Release Notes https://docs.openstack.org/releasenotes/puppet-tripleo