[pve-devel] [PATCH storage] Fix #1750: set monhost split to old behavior

Alwin Antreich a.antreich at proxmox.com
Fri May 4 14:03:47 CEST 2018


The path method of the RBDPlugin got a list with comma separated monhosts,
but it needs the list with semi-colon for qemu.

Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
 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 1f54c37..f695548 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -345,7 +345,7 @@ sub path {
     if ($cmd_option->{ceph_conf}) {
 	$path .= ":conf=$cmd_option->{ceph_conf}";
     } else {
-	my $monhost = $cmd_option->{mon_host};
+	my $monhost = $hostlist->($scfg->{monhost}, ';');
 	$monhost =~ s/:/\\:/g;
 	$path .= ":mon_host=$monhost";
 	$path .= ":auth_supported=$cmd_option->{auth_supported}";
-- 
2.11.0




More information about the pve-devel mailing list