From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pve-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	by lore.proxmox.com (Postfix) with ESMTPS id B2EEF1FF191
	for <inbox@lore.proxmox.com>; Mon,  2 Jun 2025 18:17:21 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 8F78E81BD;
	Mon,  2 Jun 2025 18:17:32 +0200 (CEST)
To: pve-devel@lists.proxmox.com
Date: Mon,  2 Jun 2025 17:10:51 +0100
MIME-Version: 1.0
Message-ID: <mailman.182.1748881051.395.pve-devel@lists.proxmox.com>
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Post: <mailto:pve-devel@lists.proxmox.com>
From: Tiago Sousa via pve-devel <pve-devel@lists.proxmox.com>
Precedence: list
Cc: Tiago Sousa <joao.sousa@eurotux.com>
X-Mailman-Version: 2.1.29
X-BeenThere: pve-devel@lists.proxmox.com
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
Subject: [pve-devel] [RFC pve-manager 0/1] Node maintenance set state for
 the UI
Content-Type: multipart/mixed; boundary="===============3880373366440597697=="
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

--===============3880373366440597697==
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <joao.sousa@eurotux.com>
X-Original-To: pve-devel@lists.proxmox.com
Delivered-To: pve-devel@lists.proxmox.com
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by lists.proxmox.com (Postfix) with ESMTPS id 31A39CB333
	for <pve-devel@lists.proxmox.com>; Mon,  2 Jun 2025 18:17:31 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id 0AB4A808B
	for <pve-devel@lists.proxmox.com>; Mon,  2 Jun 2025 18:17:01 +0200 (CEST)
Received: from eurotux.com (mail.eurotux.com [185.98.249.9])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by firstgate.proxmox.com (Proxmox) with ESMTPS
	for <pve-devel@lists.proxmox.com>; Mon,  2 Jun 2025 18:16:59 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by eurotux.com (Postfix) with ESMTP id 15F2D30C6F82;
	Mon,  2 Jun 2025 17:11:11 +0100 (WEST)
Authentication-Results: mail.prd.eurotux.pt (amavisd-new);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=eurotux.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eurotux.com; h=
	content-transfer-encoding:mime-version:x-mailer:message-id:date
	:date:subject:subject:from:from; s=default; t=1748880670; x=
	1750695071; bh=iS4raVHrkdtK4xqKUIA0PPQsfKBrgpTIO6mTQJv2Xtk=; b=H
	vKnzNaavb0VpTnEQ4q6EyArmZn5hC7wGLxveiMCt3sI1TfJEm35/fUWosu+p4OW1
	XvJ2Gtis/AoclpOTBWiOVjQku/B7z9+IOxNTtARzLQfrGtcW0OtuDZmW749CTEin
	b2RfiIYq61r4H5wWD4Qe06LFO72HoX2+5RsPX8UZ3OFvCfA3OxJ7RDHlxNpm2SWT
	hw2+le0EPNEvSAnS2YECZ6I0U6iE/r9j1JSmAEHUZx9nJc47AGnWM8RD5xAcWxBc
	NooJL9i47TWErzsB7yF3Yk7dVgXlNmlO5JtCuKG0BSPzX7eVtYdl69dZQJ1Pe19j
	UMinkH0KlVy8rQrV5Tu5A==
X-Virus-Scanned: amavisd-new at mail.prd.eurotux.pt
Received: from eurotux.com ([127.0.0.1])
 by localhost (mail.prd.eurotux.pt [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id K7RYh6BgGcYv; Mon,  2 Jun 2025 17:11:10 +0100 (WEST)
Received: from proxmox.example (brg.eurotux.com [185.98.249.5])
	(Authenticated sender: joao.sousa@eurotux.com)
	by eurotux.com (Postfix) with ESMTPSA id 3BE6C30A8923;
	Mon,  2 Jun 2025 17:11:10 +0100 (WEST)
From: Tiago Sousa <joao.sousa@eurotux.com>
To: pve-devel@lists.proxmox.com
Subject: [RFC pve-manager 0/1] Node maintenance set state for the UI
Date: Mon,  2 Jun 2025 17:10:51 +0100
Message-Id: <20250602161052.170879-1-joao.sousa@eurotux.com>
X-Mailer: git-send-email 2.39.5
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
X-SPAM-LEVEL: Spam detection results:  0
	BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
	DKIM_SIGNED               0.1 Message has a DKIM or DK signature, not necessarily valid
	DKIM_VALID               -0.1 Message has at least one valid DKIM or DK signature
	DKIM_VALID_AU            -0.1 Message has a valid DKIM or DK signature from author's domain
	DKIM_VALID_EF            -0.1 Message has a valid DKIM or DK signature from envelope-from domain
	DMARC_PASS               -0.1 DMARC pass policy
	POISEN_SPAM_PILL          0.1 Meta: its spam
	POISEN_SPAM_PILL_1        0.1 random spam to be learned in bayes
	POISEN_SPAM_PILL_3        0.1 random spam to be learned in bayes
	RCVD_IN_MSPIKE_H2       0.001 Average reputation (+2)
	SPF_HELO_PASS          -0.001 SPF: HELO matches SPF record
	SPF_PASS               -0.001 SPF: sender matches SPF record

This patch addresses feature request
https://bugzilla.proxmox.com/show_bug.cgi?id=3D6144  to add support for
setting a node's maintenance state directly from the UI and API.

This implementation uses Sys.PowerMgmt permission for now, but I'm
unsure if this is the most appropriate. Could there be a better
permission level?

The API endpoint location at /nodes/{node_name}/node-maintenance-set
seems logical, but feedback on placement would be appreciated.

Tiago Sousa (1):
  add ha node maintenance mode to the UI and API

 PVE/API2/Nodes.pm            | 45 ++++++++++++++++++++++++++++++++++++
 www/manager6/Utils.js        |  1 +
 www/manager6/node/CmdMenu.js | 36 +++++++++++++++++++++++++++--
 3 files changed, 80 insertions(+), 2 deletions(-)

--
2.39.5



--===============3880373366440597697==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============3880373366440597697==--