Discussion:
[pve-devel] [PATCH librados2-perl] fix #1950: use /etc/pve/ceph.conf as default
Tim Marx
2018-12-10 11:52:28 UTC
Permalink
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 <***@proxmox.com>
---
PVE/RADOS.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/RADOS.pm b/PVE/RADOS.pm
index d9e2e3b..11af8a6 100644
--- a/PVE/RADOS.pm
+++ b/PVE/RADOS.pm
@@ -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';
--
2.11.0
Thomas Lamprecht
2018-12-10 15:27:05 UTC
Permalink
Post by Tim Marx
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.
---
PVE/RADOS.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/RADOS.pm b/PVE/RADOS.pm
index d9e2e3b..11af8a6 100644
--- a/PVE/RADOS.pm
+++ b/PVE/RADOS.pm
@@ -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';
Loading...