From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 511FB1FF15F for ; Mon, 18 Nov 2024 21:56:24 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1FBFA185A9; Mon, 18 Nov 2024 21:56:30 +0100 (CET) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Date: Mon, 18 Nov 2024 21:55:36 +0100 Message-Id: <20241118205537.3136251-2-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241118205537.3136251-1-s.ivanov@proxmox.com> References: <20241118205537.3136251-1-s.ivanov@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.071 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH cluster 1/1] cfs: add 'sdn/mac-cache.json' to observed files X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" follows commit: d8ef05c (cfs: add 'sdn/pve-ipam-state.json' to observed files) with the same motivation - the data in the macs.db file is a cache, to prevent unneccessary lookups to external IPAM modules - is not private in the sense of secrets for external resources. Signed-off-by: Stoiko Ivanov --- src/PVE/Cluster.pm | 3 ++- src/pmxcfs/status.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PVE/Cluster.pm b/src/PVE/Cluster.pm index 28ebcfe..e0e3ee9 100644 --- a/src/PVE/Cluster.pm +++ b/src/PVE/Cluster.pm @@ -62,7 +62,7 @@ my $observed = { 'priv/token.cfg' => 1, 'priv/acme/plugins.cfg' => 1, 'priv/ipam.db' => 1, # TODO: replaced by sdn/ipam-pve-db.json, remove in PVE 9+ - 'priv/macs.db' => 1, + 'priv/macs.db' => 1, # TODO: replaced by sdn/mac-cache.json, remove in PVE 9+ '/qemu-server/' => 1, '/openvz/' => 1, '/lxc/' => 1, @@ -79,6 +79,7 @@ my $observed = { 'sdn/subnets.cfg' => 1, 'sdn/ipams.cfg' => 1, 'sdn/pve-ipam-state.json' => 1, + 'sdn/mac-cache.json' => 1, 'sdn/dns.cfg' => 1, 'sdn/.running-config' => 1, 'virtual-guest/cpu-models.conf' => 1, diff --git a/src/pmxcfs/status.c b/src/pmxcfs/status.c index 6e5d4fb..ff5fcc4 100644 --- a/src/pmxcfs/status.c +++ b/src/pmxcfs/status.c @@ -89,7 +89,7 @@ static memdb_change_t memdb_change_array[] = { { .path = "priv/tfa.cfg" }, { .path = "priv/token.cfg" }, { .path = "priv/ipam.db" }, // TODO: replaced by sdn/ipam-pve-db.json remove with PVE 9 or later - { .path = "priv/macs.db" }, + { .path = "priv/macs.db" }, // TODO: replaced by sdn/mac-cache.json remove with PVE 9 or later { .path = "datacenter.cfg" }, { .path = "vzdump.cron" }, { .path = "vzdump.conf" }, @@ -107,6 +107,7 @@ static memdb_change_t memdb_change_array[] = { { .path = "sdn/controllers.cfg" }, { .path = "sdn/subnets.cfg" }, { .path = "sdn/ipams.cfg" }, + { .path = "sdn/mac-cache.json" }, { .path = "sdn/pve-ipam-state.json" }, { .path = "sdn/dns.cfg" }, { .path = "sdn/.running-config" }, -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel