]> git.proxmox.com Git - pve-manager.git/commitdiff
5to6: add check for scanned simple OSDs
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 27 Jun 2019 19:02:03 +0000 (21:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 Jun 2019 19:52:56 +0000 (21:52 +0200)
only as a warning, since this will also trigger a Ceph health warning
and is easily recoverable.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/CLI/pve5to6.pm

index 98b35594cf950b4da6233edae6e21e244a8d299f..a0af4f01ce66d57efe86a7a662435d336875e651 100644 (file)
@@ -360,6 +360,18 @@ sub check_ceph {
            log_warn("overall version mismatch detected, check 'ceph versions' output for details!");
        }
     }
+
+    my $local_ceph_ver = PVE::Ceph::Tools::get_local_version(1);
+    if (defined($local_ceph_ver)) {
+       if ($local_ceph_ver == 14) {
+           my $scanned_osds = PVE::Tools::dir_glob_regex('/etc/ceph/osd', '^.*\.json$');
+           if (-e '/var/lib/ceph/osd/' && !defined($scanned_osds)) {
+               log_warn("local Ceph version is Nautilus, local OSDs detected, but no conversion from ceph-disk to ceph-volume done (yet).");
+           }
+       }
+    } else {
+       log_fail("unable to determine local Ceph version.");
+    }
 }
 
 sub check_misc {