RETIRED, Lightweight composition layer for Puppet TripleO
Go to file
Luca Miccini bacfec8647 Implement stonith levels and enable kdump agent.
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
2019-04-25 16:34:47 +00:00
doc Follow the new PTI for document build 2018-02-28 14:42:12 +08:00
files Qdr: InternalTLS support. 2019-03-28 16:28:05 -04:00
lib Adding a udev rule to save sriov interface name before configuring switchdev 2019-02-20 03:27:25 -05:00
manifests Implement stonith levels and enable kdump agent. 2019-04-25 16:34:47 +00:00
releasenotes Update master for stable/stein 2019-04-18 14:56:54 +00:00
spec Merge "Remove puppet selinux management" 2019-04-25 16:16:04 +00:00
templates Correct how podman exec is called for the neutron-keepalived-state-change 2019-04-17 13:55:29 +02:00
zuul.d Remove Congress 2019-03-13 23:59:06 +00:00
.gitignore Dissuade .gitignore references to personal tools 2018-10-08 11:47:08 +08:00
.gitreview OpenDev Migration Patch 2019-04-19 19:35:27 +00:00
.sync.yml Initial msync run for all Puppet OpenStack modules 2015-08-18 14:30:54 +02:00
Gemfile Load puppet-openstack_spec_helper locally during tests 2018-02-12 10:53:40 +08:00
LICENSE Add basic structure for a Puppet module 2015-02-02 11:39:21 -05:00
Puppetfile_extras Fix ntp module version to an existing tag/branch 2019-04-09 09:22:52 +02:00
README.md Add release note link in README 2018-06-27 22:47:34 +08:00
Rakefile Composable HA 2017-01-25 19:32:31 +00:00
bindep.txt Add Puppet package to bindep, for module build 2017-10-27 13:50:15 -07:00
metadata.json Bump metadata for release 2019-04-18 09:37:12 -06:00
setup.cfg Update mailinglist from dev to discuss 2018-12-05 09:46:02 +08:00
setup.py chmod +x setup.py 2017-10-06 12:28:56 -07:00
tox.ini Update min tox version to 2.0 2018-10-16 11:40:19 +08:00

README.md

Team and repository tags

Team and repository tags

puppet-tripleo

Lightweight composition layer for Puppet TripleO.

Contributing