[pve-devel] [PATCH-SERIES guest-common/container/qemu-server/ha-manager] make HA manager not depend on internal configuration details

Fiona Ebner f.ebner at proxmox.com
Tue Feb 28 11:54:06 CET 2023


by introducing a get_derived_property() method for the configuration
plugins. The derived properties are calculated by the plugins and will
stay the same regardless of changes to the configuration structure.
For example, this will allow turning QemuConfig's 'memory' into a
property string (still requires a versioned Breaks for older HA
manager).

Dependency bumps ha-manager -> container,qemu-server are needed.


guest-common:

Fiona Ebner (1):
  abstract config: add method to calculate derived properties from a
    config

 src/PVE/AbstractConfig.pm | 9 +++++++++
 1 file changed, 9 insertions(+)


container:

Fiona Ebner (1):
  config: implement method to calculate derived properties from a config

 src/PVE/LXC/Config.pm | 12 ++++++++++++
 1 file changed, 12 insertions(+)


qemu-server:

Fiona Ebner (1):
  config: implement method to calculate derived properties from a config

 PVE/QemuConfig.pm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)


ha-manager:

Fiona Ebner (1):
  resources: pve: avoid relying on internal configuration details

 src/PVE/HA/Resources/PVECT.pm | 4 ++--
 src/PVE/HA/Resources/PVEVM.pm | 7 ++-----
 2 files changed, 4 insertions(+), 7 deletions(-)

-- 
2.30.2






More information about the pve-devel mailing list