]> git.proxmox.com Git - pve-manager.git/commitdiff
pve6to7: check for >= Octopus
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 6 Jul 2021 12:13:46 +0000 (14:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jul 2021 12:21:54 +0000 (14:21 +0200)
and drop the Nautilus OSD upgrade check while we are at it..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
(cherry picked from commit d1c51d86cab38d099fc64443f6b18717fb57eb9f)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pve6to7.pm

index 3d2b4766d1091f0200f048022a2ead3ddbe2deef..c26c3d5a90fe78e1ba6247452c89dd806f91686b 100644 (file)
@@ -496,12 +496,8 @@ sub check_ceph {
 
     my $local_ceph_ver = PVE::Ceph::Tools::get_local_version(1);
     if (defined($local_ceph_ver)) {
-       if ($local_ceph_ver == 14) {
-           my $ceph_volume_osds = PVE::Ceph::Tools::ceph_volume_list();
-           my $scanned_osds = PVE::Tools::dir_glob_regex('/etc/ceph/osd', '^.*\.json$');
-           if (-e '/var/lib/ceph/osd/' && !defined($scanned_osds) && !(keys %$ceph_volume_osds)) {
-               log_warn("local Ceph version is Nautilus, local OSDs detected, but no conversion from ceph-disk to ceph-volume done (yet).");
-           }
+       if ($local_ceph_ver <= 14) {
+           log_fail("local Ceph version too low, at least Octopus required..");
        }
     } else {
        log_fail("unable to determine local Ceph version.");