From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 B639299FD3 for ; Tue, 16 May 2023 00:47:53 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 989CD1814E for ; Tue, 16 May 2023 00:47:23 +0200 (CEST) Received: from bastionodiso.odiso.net (bastionodiso.odiso.net [IPv6:2a0a:1580:2000::2d]) (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 firstgate.proxmox.com (Proxmox) with ESMTPS for ; Tue, 16 May 2023 00:47:22 +0200 (CEST) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id 3A35C8B58; Tue, 16 May 2023 00:47:12 +0200 (CEST) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id 26880256365; Tue, 16 May 2023 00:47:12 +0200 (CEST) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Tue, 16 May 2023 00:47:09 +0200 Message-Id: <20230515224710.1331004-6-aderumier@odiso.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230515224710.1331004-1-aderumier@odiso.com> References: <20230515224710.1331004-1-aderumier@odiso.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.016 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 HEADER_FROM_DIFFERENT_DOMAINS 0.249 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH ifupdown2 5/6] patch: remove lacp bond min-links=0 warning 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: , X-List-Received-Date: Mon, 15 May 2023 22:47:53 -0000 Signed-off-by: Alexandre Derumier --- ...bond-remove-bond-min-links-0-warning.patch | 33 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 34 insertions(+) create mode 100644 debian/patches/pve/0013-lacp-bond-remove-bond-min-links-0-warning.patch diff --git a/debian/patches/pve/0013-lacp-bond-remove-bond-min-links-0-warning.patch b/debian/patches/pve/0013-lacp-bond-remove-bond-min-links-0-warning.patch new file mode 100644 index 0000000..089b315 --- /dev/null +++ b/debian/patches/pve/0013-lacp-bond-remove-bond-min-links-0-warning.patch @@ -0,0 +1,33 @@ +From df1e76e6bcdca3044ee9d53ddb62a71bedf4b8a6 Mon Sep 17 00:00:00 2001 +From: Alexandre Derumier +Date: Tue, 16 May 2023 00:33:36 +0200 +Subject: [PATCH] lacp bond: remove bond-min-links=0 warning + +This is only cumulus specific + +Signed-off-by: Alexandre Derumier +--- + ifupdown2/addons/bond.py | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/ifupdown2/addons/bond.py b/ifupdown2/addons/bond.py +index 74d2cab..4a555cc 100644 +--- a/ifupdown2/addons/bond.py ++++ b/ifupdown2/addons/bond.py +@@ -610,13 +610,6 @@ class bond(Addon, moduleBase): + # if we need to reset the mode to system default + ifla_info_data[Link.IFLA_BOND_MODE] = ifla_bond_mode + +- if ifla_bond_mode == 4: # 802.3ad +- min_links = ifla_info_data.get(Link.IFLA_BOND_MIN_LINKS) +- if min_links is None: +- min_links = self.cache.get_link_info_data_attribute(ifname, Link.IFLA_BOND_MIN_LINKS) +- # get_min_links_nl may return None so we need to strictly check 0 +- if min_links == 0: +- self.logger.warning('%s: attribute bond-min-links is set to \'0\'' % ifname) + else: + # IFLA_BOND_AD_LACP_RATE and IFLA_BOND_AD_LACP_BYPASS only for 802.3ad mode (4) + for nl_attr, attr_name in self._bond_lacp_attrs: +-- +2.30.2 + diff --git a/debian/patches/series b/debian/patches/series index 8edf054..ab3863c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -10,4 +10,5 @@ pve/0009-postinst-rm-update-network-config-compatibility.patch pve/0010-d-rules-drop-now-default-with-systemd.patch pve/0011-d-rules-add-dh_installsystemd-override-for-compat-12.patch pve/0012-postinst-reload-network-config-on-first-install.patch +pve/0013-lacp-bond-remove-bond-min-links-0-warning.patch upstream/0001-add-ipv6-slaac-support-inet6-auto-accept_ra.patch \ No newline at end of file -- 2.30.2