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 C402A63813 for ; Thu, 16 Jul 2020 09:29:41 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id AD748FFCD for ; Thu, 16 Jul 2020 09:29:40 +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 5F738FFB5 for ; Thu, 16 Jul 2020 09:29:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailpro.odiso.net (Postfix) with ESMTP id E480F13B5555; Thu, 16 Jul 2020 09:29:37 +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 UvsWP4h9F-yX; Thu, 16 Jul 2020 09:29:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailpro.odiso.net (Postfix) with ESMTP id C9BD113B5556; Thu, 16 Jul 2020 09:29:37 +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 1aaB0cgu1SKH; Thu, 16 Jul 2020 09:29:37 +0200 (CEST) Received: from mailpro.odiso.net (mailpro.odiso.net [10.1.31.111]) by mailpro.odiso.net (Postfix) with ESMTP id B2C7213B5555; Thu, 16 Jul 2020 09:29:37 +0200 (CEST) Date: Thu, 16 Jul 2020 09:29:37 +0200 (CEST) From: Alexandre DERUMIER To: Proxmox VE development discussion Cc: pve-devel Message-ID: <1483212253.316617.1594884577550.JavaMail.zimbra@odiso.com> In-Reply-To: <820036375.40230.1594879482824.JavaMail.zimbra@fws.fr> References: <820036375.40230.1594879482824.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: y1zPifgoAsMRQ2wzUpPChB4QySALrCLwFjrj 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 07:29:41 -0000 Hi, ifupdown3 have migrated to python3, maybe try to install python3-mako package ? ----- Mail original ----- De: "Daniel Berteaud" =C3=80: "pve-devel" Envoy=C3=A9: Jeudi 16 Juillet 2020 08:04:42 Objet: [pve-devel] Regression in ifupdown2 with templates ? Hi there.=20 I'm running a 5 nodes PVE6 cluster, and I'm using ifupdown2 templating feat= ures to create vxlan overlays between my nodes (setup this before the SDN f= eature went live). Here's a snippet of my /etc/network/interfaces :=20 %for i in range(1, 6):=20 %for v in range(0, 21):=20 auto vxlan${i*100+v}=20 iface vxlan${i*100+v}=20 vxlan-id ${i*100+v}=20 vxlan-mcastgrp 225.20.118.1=20 vxlan-physdev enp132s0f0.2018=20 bridge-access ${i*100+v}=20 %endfor=20 %endfor=20 auto vmbr0=20 iface vmbr0 inet manual=20 %for i in range(1, 6):=20 bridge-ports glob vxlan${i*100}-${i*100+20}=20 %endfor=20 bridge-stp off=20 bridge-fd 0=20 bridge-vlan-aware yes=20 bridge-vids 2-4094=20 Everything is working fine with ifupdown2-2.0.1-1+pve10 but if I update ifu= pdown to v 3.0.0-1+pve2, my vxlan aren't created anymore. An ifreload -a ou= tputs these errors :=20 root@pve4:~# ifreload -a=20 warning: unable to set template lookup path /etc/network/ifupdown2/template= s ('NoneType' object is not callable): are you sure 'python-mako'is install= ed?=20 warning: /etc/network/interfaces: line33: vxlan${i*100+v}: unexpected chara= cters in interface name=20 error: /etc/network/interfaces: line37: iface vxlan${i*100+v}: invalid synt= ax '%endfor'=20 error: /etc/network/interfaces: line38: iface vxlan${i*100+v}: invalid synt= ax '%endfor'=20 error: /etc/network/interfaces: line44: iface vmbr0: invalid syntax '%endfo= r'=20 warning: vmbr0: error parsing glob expression 'vxlan${i*100}-${i*100+20}' (= supported glob syntax: swp1-10.300 or swp[1-10].300 or swp[1-10]sub[0-4].30= 0=20 warning: vmbr0: error parsing glob expression 'vxlan${i*100}-${i*100+20}' (= supported glob syntax: swp1-10.300 or swp[1-10].300 or swp[1-10]sub[0-4].30= 0=20 error: vxlan${i*100+v}: invalid vxlan-id '${i*100+v}'=20 warning: vxlan${i*100+v}: invalid use of bridge attribute (bridge-access) o= n non-bridge stanza=20 error: netlink: vxlan${i*100}-${i*100+20}: cannot enslave link vxlan${i*100= }-${i*100+20} to vmbr0: interface name exceeds max length of 15=20 warning: vmbr0: error parsing glob expression 'vxlan${i*100}-${i*100+20}' (= supported glob syntax: swp1-10.300 or swp[1-10].300 or swp[1-10]sub[0-4].30= 0=20 error: vmbr0: bridge port vxlan${i*100}-${i*100+20} does not exist=20 (yes, python-mako is installed)=20 I had to downgrade ifupdown2 on all my nodes to get my network stack back o= nline.=20 Is there a regression with templating support in ifupdown2 v3 or has someth= ing changed and must be adapted ?=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