From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 7D8741FF0BC for ; Wed, 02 Dec 2026 12:39:33 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 3498B21614; Wed, 02 Dec 2026 12:39:30 +0100 (CET) From: Christoph Heiss To: pve-devel@lists.proxmox.com Subject: [PATCH manager] ui: cephfs: note that at least one MDS is required for creating CephFS Date: Wed, 2 Dec 2026 12:38:58 +0100 Message-ID: <20261202113917.252448-1-c.heiss@proxmox.com> X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796211562717 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.129 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 432RRJIZMS3AMYPDNABKMM66CEAGZM35 X-Message-ID-Hash: 432RRJIZMS3AMYPDNABKMM66CEAGZM35 X-MailFrom: c.heiss@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Currently, if a user does not have a MDS configured yet, the "Create CephFS" button is just greyed out and not apparent why. It isn't directly obvious that a MDS is needed, at least to new Ceph users. Adding a simple note here tells the user what needs to be done. Signed-off-by: Christoph Heiss --- www/manager6/ceph/FS.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/www/manager6/ceph/FS.js b/www/manager6/ceph/FS.js index 5f0492555..7f4da89f5 100644 --- a/www/manager6/ceph/FS.js +++ b/www/manager6/ceph/FS.js @@ -95,13 +95,29 @@ Ext.define( canCreateFS: function (get) { return get('mdsCount') > 0; }, + emptyText: function (get) { + let text = Ext.String.format(gettext('No {0} configured.'), 'CephFS'); + if (!get('canCreateFS')) { + text += ' '; + text += Ext.String.format( + // TRANSLATORS: Metadata Server refers to Ceph's MDS. + gettext( + 'To create a {0}, at least one Metadata Server must be configured first.', + ), + 'CephFS', + ); + } + return text; + }, }, }, items: [ { xtype: 'grid', - emptyText: Ext.String.format(gettext('No {0} configured.'), 'CephFS'), + bind: { + emptyText: '{emptyText}', + }, controller: { xclass: 'Ext.app.ViewController', -- 2.56.0