]> git.proxmox.com Git - pve-cluster.git/commit
Add cluster join API version check
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 9 Jan 2020 15:31:36 +0000 (16:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 25 Mar 2020 14:30:11 +0000 (15:30 +0100)
commita755ff5422f9218d8e5bf8441d94d127f70c6e30
tree9bb1f76c14922898c2bd46e5e13553416a5f9337
parent9e7e46ae619c1271ed47e909fc74ac2dc2adc280
Add cluster join API version check

Adds API call GET /cluster/config/apiversion to retrieve remote clusters
join-API version (0 is assumed for versions without this endpoint). Also
available via CLI as 'pvecm apiver'.

Introduce API_AGE similar to storage plugin API, but with two ages for
cluster/joinee roles. Currently, all versions are intercompatible.

For future usage, a new 'addnode' parameter 'apiversion' is introduced,
to allow introducing API breakages for joining nodes as well.

As a first compatibility check, use new fallback method only if
available. This ensures full compatibility between nodes/clusters with
and without new fallback behaviour.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
data/PVE/API2/ClusterConfig.pm
data/PVE/CLI/pvecm.pm
data/PVE/Cluster/Setup.pm