[pve-devel] [PATCH pve-ha-manager 0/3] adapt pve-ha-manager to support autocomplete

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Sep 14 17:21:53 CEST 2015


convert the CRM and LRM daemons to PVE::Service classes and move ha-manager to a PVE::CLI class.
This adds basic autocomplete, advanced (like complete service id, groups, etc) auto complete will follow soon.
This series need the patch for pve-common which I posted earlier today.

I did only basic testing as this doesn't change any behaviour of the HA logic.

Thomas Lamprecht (3):
  move ha-manager to separate CLIHandler class
  convert pve-ha-lrm into a PVE::Service class
  convert pve-ha-crm into a PVE::Service class

 src/Makefile                  |  37 ++++++---
 src/PVE/CLI/Makefile          |   6 ++
 src/PVE/CLI/ha_manager.pm     | 175 +++++++++++++++++++++++++++++++++++++++
 src/PVE/Makefile              |   2 +
 src/PVE/Service/Makefile      |   6 ++
 src/PVE/Service/pve_ha_crm.pm |  74 +++++++++++++++++
 src/PVE/Service/pve_ha_lrm.pm |  74 +++++++++++++++++
 src/ha-manager                | 185 +-----------------------------------------
 src/pve-ha-crm                |  79 ++----------------
 src/pve-ha-lrm                |  78 ++----------------
 10 files changed, 381 insertions(+), 335 deletions(-)
 create mode 100644 src/PVE/CLI/Makefile
 create mode 100644 src/PVE/CLI/ha_manager.pm
 create mode 100644 src/PVE/Service/Makefile
 create mode 100644 src/PVE/Service/pve_ha_crm.pm
 create mode 100644 src/PVE/Service/pve_ha_lrm.pm

-- 
2.1.4




More information about the pve-devel mailing list