[pve-devel] [PATCH pve-storage] fix ceph_version_parser

Wolfgang Link w.link at proxmox.com
Mon Jul 3 17:12:52 CEST 2017


Ceph change ceph version output.

full output of 'ceph --version'

Luminous 'ceph version 12.1.0 (262617c9f16c55e863693258061c5b25dea5b086) luminous (dev)'
Jewel 	 'ceph version 10.2.7 (50e863e0f4bc8f4b9e31156de690d765af245185)'
---
 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 0db9b95..250ee7c 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -116,7 +116,7 @@ my $krdb_feature_disable = sub {
 
 my $ceph_version_parser = sub {
     my $line = shift;
-    if ($line =~ m/^ceph version ((\d+)\.(\d+)\.(\d+))(?: \([a-fA-F0-9]+\))?$/) {
+    if ($line =~ m/^ceph version ((\d+)\.(\d+)\.(\d+))(?: \([a-fA-F0-9]+\))/) {
 	return ($2, $3, $4, $1);
     } else {
 	warn "Could not parse Ceph version: '$line'\n";
-- 
2.11.0





More information about the pve-devel mailing list