]> git.proxmox.com Git - pve-storage.git/commitdiff
use correct ceph version command
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 14 Jun 2016 09:39:42 +0000 (11:39 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Jun 2016 09:46:32 +0000 (11:46 +0200)
"ceph version" retrieves the version from the cluster (i.e.,
from the queried monitor), but what is needed here is the
local ceph version, which is returned by "ceph --version".

PVE/Storage/RBDPlugin.pm

index 76f3d2eb42214a57dd473580b0f4118da7df0a06..2ef7573b735100575d71e3aa3b865b5ad77cac2c 100644 (file)
@@ -113,7 +113,7 @@ sub ceph_version {
     if (defined($version_string)) {
        ($major, $minor, $bugfix, $version_string) = &$ceph_version_parser($version_string);
     } else {
-       run_command('ceph version', outfunc => sub {
+       run_command('ceph --version', outfunc => sub {
            my $line = shift;
            ($major, $minor, $bugfix, $version_string) = &$ceph_version_parser($line);
        });