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 70EEC63842 for ; Thu, 16 Jul 2020 10:15:22 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 66EE710927 for ; Thu, 16 Jul 2020 10:14:52 +0200 (CEST) Received: from pmg.fws.fr (pmg.fws.fr [51.91.175.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 83AA81091C for ; Thu, 16 Jul 2020 10:14:51 +0200 (CEST) Received: from pmg.fws.fr (localhost [127.0.0.1]) by pmg.fws.fr (Proxmox) with ESMTP id 28A1CC27FF; Thu, 16 Jul 2020 10:14:51 +0200 (CEST) Received: from zmproxy.fws.fr (zmproxy.fws.fr [10.29.1.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pmg.fws.fr (Proxmox) with ESMTPS id D7200C0188; Thu, 16 Jul 2020 10:14:49 +0200 (CEST) Received: from zmproxy.fws.fr (localhost [127.0.0.1]) by zmproxy.fws.fr (Postfix) with ESMTPS id CCA0E8B3580; Thu, 16 Jul 2020 10:14:49 +0200 (CEST) Received: from zmproxy.fws.fr (localhost [127.0.0.1]) by zmproxy.fws.fr (Postfix) with ESMTPS id B2E568CEEF5; Thu, 16 Jul 2020 10:14:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmproxy.fws.fr B2E568CEEF5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=firewall-services.com; s=7DAD15A2-D84A-11E9-8F77-BEC4FAA34EBC; t=1594887289; bh=U2NSsp+QrtqjFrj45/Y2WYHBubO+DmBkBoVTnDvUFOY=; h=Date:From:To:Message-ID:MIME-Version; b=qFwg/xEKCOzCjTO1x3Y/i7gqRt5ghuljObKnoBGHuxfYOD8Fxusrj2VHvuk2xlmJO n6INHkYAfTkeJWYsR+IKm8br/qopoH7QyzCBNcdIcDY5KW/Ht4Xa7Kc3diOPOlxn7/ dAfCHWGpLjpeexfhCiPBThPmE/4IceRLs+jC4bl1j4WWazjwgAEGUa5fJYar66zUJf /IxVbNfxMe0vnWf574RllArKOdE8RY6lPXSbSLw8AHlFnTlnzUUnFP8ewNNT+b5os6 xb0598lZvWlLD3N1JBzvRHBlGCJ90RyJm7PftOQdFLdWroBnlS8gCvyHveFsjoq8sb ZqeREmY1VoU2w== Received: from zmstore.fws.fr (zmstore.fws.fr [10.29.3.15]) by zmproxy.fws.fr (Postfix) with ESMTP id A77718B3580; Thu, 16 Jul 2020 10:14:49 +0200 (CEST) Date: Thu, 16 Jul 2020 10:14:49 +0200 (CEST) From: Daniel Berteaud To: Proxmox VE development discussion Cc: pve-devel Message-ID: <1933994694.40972.1594887289529.JavaMail.zimbra@fws.fr> In-Reply-To: <1483212253.316617.1594884577550.JavaMail.zimbra@odiso.com> References: <820036375.40230.1594879482824.JavaMail.zimbra@fws.fr> <1483212253.316617.1594884577550.JavaMail.zimbra@odiso.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.29.1.17] X-Mailer: Zimbra 8.8.15_GA_3955 (ZimbraWebClient - GC83 (Linux)/8.8.15_GA_3953) Thread-Topic: Regression in ifupdown2 with templates ? Thread-Index: y1zPifgoAsMRQ2wzUpPChB4QySALrCLwFjrjsvcTVaE= X-SPAM-LEVEL: Spam detection results: 0 AWL 0.006 Adjusted score from AWL reputation of From: address 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 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 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:15:22 -0000 ----- Le 16 Juil 20, =C3=A0 9:29, Alexandre DERUMIER aderumier@odiso.com a = =C3=A9crit : > Hi, >=20 > ifupdown3 have migrated to python3, >=20 > maybe try to install python3-mako package ? Didn't know it was switching to py3 :-) 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 root@pve5:~# ifreload -a -v info: requesting link dump info: requesting address dump info: requesting netconf dump info: loading builtin modules from ['/usr/share/ifupdown2/addons'] info: module ppp not loaded (module init failed: no /usr/bin/pon found) info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl= found) info: executing /sbin/sysctl net.bridge.bridge-allow-multiple-vlans info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found= ) info: executing /bin/ip rule show info: executing /bin/ip -6 rule show info: address: using default mtu 1500 info: address: max_mtu undefined info: executing /usr/sbin/ip vrf id info: mgmt vrf_context =3D False info: dhclient: dhclient_retry_on_failure set to 0 info: executing /bin/ip addr help info: address metric support: OK info: module ppp not loaded (module init failed: no /usr/bin/pon found) info: module mstpctl not loaded (module init failed: no /sbin/mstpctl found= ) info: module batman_adv not loaded (module init failed: no /usr/sbin/batctl= found) info: looking for user scripts under /etc/network info: loading scripts under /etc/network/if-pre-up.d ... info: loading scripts under /etc/network/if-up.d ... info: loading scripts under /etc/network/if-post-up.d ... info: loading scripts under /etc/network/if-pre-down.d ... info: loading scripts under /etc/network/if-down.d ... info: loading scripts under /etc/network/if-post-down.d ... info: 'link_master_slave' is set. slave admin state changes will be delayed= till the masters admin state change. info: using mgmt iface default prefix eth info: processing interfaces file /etc/network/interfaces info: template processing on interfaces file ... error: main exception: a bytes-like object is required, not 'str' info: exit status 1 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) Cheers, Daniel --=20 [ https://www.firewall-services.com/ ] =09 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 ]