]> git.proxmox.com Git - pve-manager.git/commitdiff
ceph: extend error for wrong config-file link
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 16 Dec 2020 11:46:11 +0000 (12:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Dec 2020 16:51:31 +0000 (17:51 +0100)
Since I had to look up the cause of the error-message in our source
explaining why exactly ceph-operations fail, because
/etc/ceph/ceph.conf exists.

reported via our community forum:
https://forum.proxmox.com/threads/osd-ersetzen-neu-erstellen.80793/

quickly tested on a virtual ceph cluster

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/Ceph/Tools.pm

index 12d309be2892389b45f3d839300a9c3af5b00b1b..ab38f7bc1dd32992313ffb2028b6232e28ce7a41 100644 (file)
@@ -292,7 +292,7 @@ sub setup_pve_symlinks {
     # fail if we find a real file instead of a link
     if (-f $ceph_cfgpath) {
        my $lnk = readlink($ceph_cfgpath);
-       die "file '$ceph_cfgpath' already exists\n"
+       die "file '$ceph_cfgpath' already exists and is not a symlink to $pve_ceph_cfgpath\n"
            if !$lnk || $lnk ne $pve_ceph_cfgpath;
     } else {
        mkdir $ceph_cfgdir;