[pve-devel] [PATCH v2 pve-guest-common 0/5] use extra file for replication config

Dietmar Maurer dietmar at proxmox.com
Tue May 30 15:12:30 CEST 2017


This approach is better, because it is easier to get a list of all
replication jobs (before it was required to read all VM/CT configuration
files). We use SectionConfig, so it is easy to extend the schema and add
additional replication types with different config (cross-cluster
replication).

change in v2:
- cleanups
- added remove_job property
- new PVE::GuestHelpers class
- PVE::ReplicationConfig::check_for_existing_jobs - new helper

Dietmar Maurer (5):
  PVE/ReplicationConfig.pm - new configuratin file for replication
  AbstractConfig.pm: remove code for replicate configuration
  PVE::ReplicationConfig::check_for_existing_jobs - new helper
  PVE::GuestHelpers::guest_migration_lock - new helper
  PVE/ReplicationConfig.pm: add remove_job property

 Makefile                 |   2 +
 PVE/AbstractConfig.pm    |   6 +-
 PVE/GuestHelpers.pm      |  25 ++++++
 PVE/ReplicationConfig.pm | 227 +++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 256 insertions(+), 4 deletions(-)
 create mode 100644 PVE/GuestHelpers.pm
 create mode 100644 PVE/ReplicationConfig.pm

-- 
2.11.0




More information about the pve-devel mailing list