[pve-devel] [PATCH RFC 0/3] new start flag for resources

Dietmar Maurer dietmar at proxmox.com
Mon Nov 14 12:23:56 CET 2016


This is an alternative fix for bug #1160 - allow HA templates.

This patch tries to implement the behaviour inside the
CRM, so the LRM is not modified at all.

The advantage is that the LRM makes sure that the resource is stopped
(instead of ignoring the resource state).


Dietmar Maurer (3):
  Resources: add new flag 'start'
  implement start flag
  add tests for new start flag

 src/PVE/HA/Config.pm                            |  1 +
 src/PVE/HA/Manager.pm                           | 29 +++++++++++------
 src/PVE/HA/Resources.pm                         | 11 ++++++-
 src/PVE/HA/Resources/PVECT.pm                   |  1 +
 src/PVE/HA/Resources/PVEVM.pm                   |  1 +
 src/PVE/HA/Sim/Hardware.pm                      |  3 +-
 src/test/test-service-no_start1/README          |  6 ++++
 src/test/test-service-no_start1/cmdlist         |  5 +++
 src/test/test-service-no_start1/hardware_status |  5 +++
 src/test/test-service-no_start1/log.expect      | 24 +++++++++++++++
 src/test/test-service-no_start1/manager_status  |  1 +
 src/test/test-service-no_start1/service_config  |  3 ++
 src/test/test-service-no_start2/README          |  5 +++
 src/test/test-service-no_start2/cmdlist         |  5 +++
 src/test/test-service-no_start2/hardware_status |  5 +++
 src/test/test-service-no_start2/log.expect      | 41 +++++++++++++++++++++++++
 src/test/test-service-no_start2/manager_status  |  1 +
 src/test/test-service-no_start2/service_config  |  3 ++
 18 files changed, 139 insertions(+), 11 deletions(-)
 create mode 100644 src/test/test-service-no_start1/README
 create mode 100644 src/test/test-service-no_start1/cmdlist
 create mode 100644 src/test/test-service-no_start1/hardware_status
 create mode 100644 src/test/test-service-no_start1/log.expect
 create mode 100644 src/test/test-service-no_start1/manager_status
 create mode 100644 src/test/test-service-no_start1/service_config
 create mode 100644 src/test/test-service-no_start2/README
 create mode 100644 src/test/test-service-no_start2/cmdlist
 create mode 100644 src/test/test-service-no_start2/hardware_status
 create mode 100644 src/test/test-service-no_start2/log.expect
 create mode 100644 src/test/test-service-no_start2/manager_status
 create mode 100644 src/test/test-service-no_start2/service_config

-- 
2.1.4




More information about the pve-devel mailing list