From e76dbd920486ce8973e6ff96ce525e48039637fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 14 Jun 2016 11:39:42 +0200 Subject: [PATCH] use correct ceph version command "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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 76f3d2e..2ef7573 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -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); });