]> git.proxmox.com Git - pve-manager.git/commit - PVE/CLI/pve7to8.pm
pve7to8: ceph version check: ignore commit hash
authorAaron Lauterer <a.lauterer@proxmox.com>
Fri, 2 Jun 2023 16:04:02 +0000 (18:04 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Jun 2023 17:16:46 +0000 (19:16 +0200)
commit2e865cb37d6ff53324855440d8fc6dc0088c33f1
treeaa4310f6812002ac2600af8acf47d781019beadf
parent31e5ac131ca7b06ec837dad4321dba346b67c431
pve7to8: ceph version check: ignore commit hash

The commit hash of the Ceph version might be different between major
releases. For example:
ceph version 17.2.6 (810db68029296377607028a6c6da1ec06f5a2b27) quincy (stable)
ceph version 17.2.6 (995dec2cdae920da21db2d455e55efbc339bde24) quincy (stable)

This can lead to unnecessary warnings of multiple detected versions.
Therefore, extract the version, e.g. 'ceph version 17.2.6', and the
commit hash. Use the simplified version for the version checks and show
an info line when the commit is different instead of a warning.
If the commit hashes are the only difference, we are likely in the
middle of the upgrade.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/CLI/pve7to8.pm