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 502AD6376D for ; Thu, 16 Jul 2020 08:13:47 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 427C1F382 for ; Thu, 16 Jul 2020 08:13:47 +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)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id C6B21F368 for ; Thu, 16 Jul 2020 08:13:44 +0200 (CEST) Received: from pmg.fws.fr (localhost [127.0.0.1]) by pmg.fws.fr (Proxmox) with ESMTP id C453BC283E for ; Thu, 16 Jul 2020 08:04:44 +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 20717C0D8E for ; Thu, 16 Jul 2020 08:04:43 +0200 (CEST) Received: from zmproxy.fws.fr (localhost [127.0.0.1]) by zmproxy.fws.fr (Postfix) with ESMTPS id 193DF8B3580 for ; Thu, 16 Jul 2020 08:04:43 +0200 (CEST) Received: from zmproxy.fws.fr (localhost [127.0.0.1]) by zmproxy.fws.fr (Postfix) with ESMTPS id 01DA28B79CD for ; Thu, 16 Jul 2020 08:04:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmproxy.fws.fr 01DA28B79CD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=firewall-services.com; s=7DAD15A2-D84A-11E9-8F77-BEC4FAA34EBC; t=1594879483; bh=V7pCuMv4mto5tgrsWgAOwTSH7LI/pKvTj0++Ox2aMaA=; h=Date:From:To:Message-ID:MIME-Version; b=qKcs1M34A1QhjRsnDy34tbqQuP5KPZFrVGIIm5CkmKZvpp+g5qDVCthbP8L7m4vE9 OcCZn240abMTAbWPZM87KKe5a8dwAGjJGFTDOd4yKYwCVm9kwMHWqUJHeIAg6bra5G 7XehNliW9LVijvsbf86rUhAgo2KCcjvKLwM4XqB+Ra7hj+GaoD1RroPwyRTp3YxpCA IQZDQP8uBIY5gKebtPVeFDKFIfN61ssrOUYpmNJfR30v9XVd5qa5SIdBW4B7xRDtow QkIQEeXLveD1s6B24ljHpLydpBDZdiug21TTWTpNuk2jaXPqQB4LnGubawanXgr7RH lYMDpSTC6sn4A== Received: from zmstore.fws.fr (zmstore.fws.fr [10.29.3.15]) by zmproxy.fws.fr (Postfix) with ESMTP id F01648B3580 for ; Thu, 16 Jul 2020 08:04:42 +0200 (CEST) Date: Thu, 16 Jul 2020 08:04:42 +0200 (CEST) From: Daniel Berteaud To: pve-devel Message-ID: <820036375.40230.1594879482824.JavaMail.zimbra@fws.fr> MIME-Version: 1.0 X-Originating-IP: [10.29.1.17] X-Mailer: Zimbra 8.8.15_GA_3955 (ZimbraWebClient - GC83 (Linux)/8.8.15_GA_3953) Thread-Index: y1zPifgoAsMRQ2wzUpPChB4QySALrA== Thread-Topic: Regression in ifupdown2 with templates ? X-SPAM-LEVEL: Spam detection results: 0 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 HTML_MESSAGE 0.001 HTML included in message 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 T_REMOTE_IMAGE 0.01 Message contains an external image URI_TRUNCATED 0.001 Message contained a URI which was truncated Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [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 06:13:47 -0000 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/ ] =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 ]= =20