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 D09C263864 for ; Thu, 16 Jul 2020 10:38:52 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 6480210EF1 for ; Thu, 16 Jul 2020 10:38:22 +0200 (CEST) Received: from mailpro.odiso.net (mailpro.odiso.net [89.248.211.110]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 04CEA10ECB for ; Thu, 16 Jul 2020 10:38:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailpro.odiso.net (Postfix) with ESMTP id 84CCD13B5949; Thu, 16 Jul 2020 10:38:19 +0200 (CEST) Received: from mailpro.odiso.net ([127.0.0.1]) by localhost (mailpro.odiso.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id jW4u-DpN1MC7; Thu, 16 Jul 2020 10:38:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailpro.odiso.net (Postfix) with ESMTP id 6824C13B594A; Thu, 16 Jul 2020 10:38:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at mailpro.odiso.com Received: from mailpro.odiso.net ([127.0.0.1]) by localhost (mailpro.odiso.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Be8inWIDja_q; Thu, 16 Jul 2020 10:38:19 +0200 (CEST) Received: from mailpro.odiso.net (mailpro.odiso.net [10.1.31.111]) by mailpro.odiso.net (Postfix) with ESMTP id 52E8913B5949; Thu, 16 Jul 2020 10:38:19 +0200 (CEST) Date: Thu, 16 Jul 2020 10:38:19 +0200 (CEST) From: Alexandre DERUMIER To: Proxmox VE development discussion Cc: pve-devel Message-ID: <481819632.318664.1594888699107.JavaMail.zimbra@odiso.com> In-Reply-To: <1933994694.40972.1594887289529.JavaMail.zimbra@fws.fr> References: <820036375.40230.1594879482824.JavaMail.zimbra@fws.fr> <1483212253.316617.1594884577550.JavaMail.zimbra@odiso.com> <1933994694.40972.1594887289529.JavaMail.zimbra@fws.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.8.12_GA_3866 (ZimbraWebClient - GC83 (Linux)/8.8.12_GA_3844) Thread-Topic: Regression in ifupdown2 with templates ? Thread-Index: y1zPifgoAsMRQ2wzUpPChB4QySALrCLwFjrjsvcTVaGMrTTlcQ== X-SPAM-LEVEL: Spam detection results: 0 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] Regression in ifupdown2 with templates ? 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: Thu, 16 Jul 2020 08:38:52 -0000 >>error: main exception: a bytes-like object is required, not 'str' seem to be a bug here, maybe in template parsing. Maybe this commit is fixing it: https://github.com/CumulusNetworks/ifupdown2/commit/c44a7a363579d78c42b0cf1= 7ff1b726dcde9296c ----- Mail original ----- De: "Daniel Berteaud" =C3=80: "Proxmox VE development discussion" Cc: "pve-devel" Envoy=C3=A9: Jeudi 16 Juillet 2020 10:14:49 Objet: Re: [pve-devel] Regression in ifupdown2 with templates ? ----- Le 16 Juil 20, =C3=A0 9:29, Alexandre DERUMIER aderumier@odiso.com a = =C3=A9crit :=20 > Hi,=20 >=20 > ifupdown3 have migrated to python3,=20 >=20 > maybe try to install python3-mako package ?=20 Didn't know it was switching to py3 :-)=20 Indeed, installing python3-mako makes the previous error message go away. B= ut the result is even worst now, as ifupdown2 completly fails and don't eve= n configure interfaces which are not using templates in /etc/network/interf= aces=20 root@pve5:~# ifreload -a -v=20 info: requesting link dump=20 info: requesting address dump=20 info: requesting netconf dump=20 info: loading builtin modules from ['/usr/share/ifupdown2/addons']=20 info: module ppp not loaded (module init failed: no /usr/bin/pon found)=20 info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl= found)=20 info: executing /sbin/sysctl net.bridge.bridge-allow-multiple-vlans=20 info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found= )=20 info: executing /bin/ip rule show=20 info: executing /bin/ip -6 rule show=20 info: address: using default mtu 1500=20 info: address: max_mtu undefined=20 info: executing /usr/sbin/ip vrf id=20 info: mgmt vrf_context =3D False=20 info: dhclient: dhclient_retry_on_failure set to 0=20 info: executing /bin/ip addr help=20 info: address metric support: OK=20 info: module ppp not loaded (module init failed: no /usr/bin/pon found)=20 info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found= )=20 info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl= found)=20 info: looking for user scripts under /etc/network=20 info: loading scripts under /etc/network/if-pre-up.d ...=20 info: loading scripts under /etc/network/if-up.d ...=20 info: loading scripts under /etc/network/if-post-up.d ...=20 info: loading scripts under /etc/network/if-pre-down.d ...=20 info: loading scripts under /etc/network/if-down.d ...=20 info: loading scripts under /etc/network/if-post-down.d ...=20 info: 'link_master_slave' is set. slave admin state changes will be delayed= till the masters admin state change.=20 info: using mgmt iface default prefix eth=20 info: processing interfaces file /etc/network/interfaces=20 info: template processing on interfaces file ...=20 error: main exception: a bytes-like object is required, not 'str'=20 info: exit status 1=20 root@pve5:~#=20 So it looks like ifupdown2 v3 is not fully compatible with config working i= n v2. Haven't digged yet into it (those are prod servers, so not easy to pl= ay with their network stack)=20 Cheers,=20 Daniel=20 --=20 [ https://www.firewall-services.com/ ]=20 Daniel Berteaud=20 FIREWALL-SERVICES SAS, La s=C3=A9curit=C3=A9 des r=C3=A9seaux=20 Soci=C3=A9t=C3=A9 de Services en Logiciels Libres=20 T=C3=A9l : +33.5 56 64 15 32=20 Matrix: @dani:fws.fr=20 [ https://www.firewall-services.com/ | https://www.firewall-services.com ]= =20 _______________________________________________=20 pve-devel mailing list=20 pve-devel@lists.proxmox.com=20 https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel=20