]> git.proxmox.com Git - librados2-perl.git/commitdiff
fix #1950: use /etc/pve/ceph.conf as default
authorTim Marx <t.marx@proxmox.com>
Mon, 10 Dec 2018 11:52:28 +0000 (12:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 10 Dec 2018 15:13:59 +0000 (16:13 +0100)
If there is no symlink between '/etc/ceph/ceph.conf -> /etc/pve/ceph.conf',
executing a RADOS command results in an exception.
For example on a cluster node where no monitor is configured and no
'pveceph init' was performed, this leads to unexpected conditions. On such a
node, if you check the monitor tab in GUI the monitors are correctly displayed,
but they seem to have no quorum, because actually the RADOS command didn't return.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
PVE/RADOS.pm

index d9e2e3bc67e54e56b899607e4638a94020a87386..11af8a69ee1f3564538c856464908810cfa24eec 100644 (file)
@@ -13,7 +13,7 @@ use PVE::RPCEnvironment;
 require Exporter;
 
 my $rados_default_timeout = 5;
-my $ceph_default_conf = '/etc/ceph/ceph.conf';
+my $ceph_default_conf = '/etc/pve/ceph.conf';
 my $ceph_default_user = 'admin';