[pve-devel] [PATCH ha-manager 0/5]

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Apr 11 17:05:58 CEST 2016


Resend as previous series was not quite right and confusing.

Some patches for HW enabled fencing, now with email support and some
bug fixes.

First patch does an heavy cleanup on the Fence class (I originally thought
to resend the whole class but it seems it was already applied)

Second adds a quite simple method to env which allows us to send emails
to the root users configured email address.

Third and fourth are the same as the last time, although a minor comment
cleanup happened in the fourth one.

Fifth is new and triggers an email on fence start and either success or
fence failure.


Changes since prev:
* fixed cleanup patch to right version
* include current send email patch
* minor formating

Thomas Lamprecht (5):
  Fence: cleanup class
  Env: add sendmail
  allow LRM lock stealing for fenced nodes
  allow use of external fencing devices
  send email on fence failure and success

 src/PVE/HA/Env.pm                       |  10 +-
 src/PVE/HA/Env/PVE2.pm                  |  13 +-
 src/PVE/HA/Fence.pm                     | 307 +++++++++++++++++---------------
 src/PVE/HA/Manager.pm                   |   9 +-
 src/PVE/HA/NodeStatus.pm                |  80 ++++++++-
 src/PVE/HA/Sim/Env.pm                   |  23 ++-
 src/test/test-basic1/log.expect         |   2 +
 src/test/test-basic2/log.expect         |   1 +
 src/test/test-basic5/log.expect         |   2 +
 src/test/test-hw-fence1/README          |   1 +
 src/test/test-hw-fence1/cmdlist         |   4 +
 src/test/test-hw-fence1/fence.cfg       |   6 +
 src/test/test-hw-fence1/hardware_status |   5 +
 src/test/test-hw-fence1/log.expect      |  55 ++++++
 src/test/test-hw-fence1/manager_status  |   1 +
 src/test/test-hw-fence1/service_config  |   5 +
 src/test/test-shutdown1/log.expect      |   2 +
 src/test/test-shutdown2/log.expect      |   2 +
 src/test/test-shutdown3/log.expect      |   2 +
 src/test/test-shutdown4/log.expect      |   2 +
 20 files changed, 373 insertions(+), 159 deletions(-)
 create mode 100644 src/test/test-hw-fence1/README
 create mode 100644 src/test/test-hw-fence1/cmdlist
 create mode 100644 src/test/test-hw-fence1/fence.cfg
 create mode 100644 src/test/test-hw-fence1/hardware_status
 create mode 100644 src/test/test-hw-fence1/log.expect
 create mode 100644 src/test/test-hw-fence1/manager_status
 create mode 100644 src/test/test-hw-fence1/service_config

-- 
2.1.4





More information about the pve-devel mailing list