Currently joining an already existing Ceph cluster won't create symlinks
from /etc/pve/ceph.conf to /etc/ceph/ceph.conf on the recently added
node. This can be remediated by running `pveceph init` but ideally
should be done by the web UI.

We remediate this by setting `configuration` to false if we reach the
branch where `operation.error.statusText` matches:

    binary not installed: /usr/bin/ceph-mon

This allow us to configure this node and run `init` in the API.

Suggested-by: Mira Limbeck <mira.limb...@gmail.com>
Signed-off-by: Maximiliano Sandoval <m.sando...@proxmox.com>
---
This was found on a ticker from the support portal.

 www/manager6/ceph/CephInstallWizard.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/manager6/ceph/CephInstallWizard.js 
b/www/manager6/ceph/CephInstallWizard.js
index f33ae868..d3c46506 100644
--- a/www/manager6/ceph/CephInstallWizard.js
+++ b/www/manager6/ceph/CephInstallWizard.js
@@ -369,6 +369,9 @@ Ext.define('PVE.ceph.CephInstallWizard', {
                                    me.down('textfield').setValue('success');
                                } else if 
(!operation.error.statusText.match("not installed", "i")) {
                                    Proxmox.Utils.setErrorMask(me, 
operation.error.statusText);
+                               } else {
+                                   // For when we join an already existing 
Ceph cluster.
+                                   
me.up('pveCephInstallWizard').getViewModel().set('configuration', false);
                                }
                            },
                        },
-- 
2.39.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to