>>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/c44a7a363579d78c42b0cf17ff1b726dcde9296c



----- Mail original -----
De: "Daniel Berteaud" <dan...@firewall-services.com>
À: "Proxmox VE development discussion" <pve-devel@lists.proxmox.com>
Cc: "pve-devel" <pve-de...@pve.proxmox.com>
Envoyé: Jeudi 16 Juillet 2020 10:14:49
Objet: Re: [pve-devel] Regression in ifupdown2 with templates ?

----- Le 16 Juil 20, à 9:29, Alexandre DERUMIER aderum...@odiso.com a écrit : 

> Hi, 
> 
> ifupdown3 have migrated to python3, 
> 
> 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. But 
the result is even worst now, as ifupdown2 completly fails and don't even 
configure interfaces which are not using templates in /etc/network/interfaces 

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 = 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:~# 


So it looks like ifupdown2 v3 is not fully compatible with config working in 
v2. Haven't digged yet into it (those are prod servers, so not easy to play 
with their network stack) 

Cheers, 
Daniel 

-- 
[ https://www.firewall-services.com/ ] 
Daniel Berteaud 
FIREWALL-SERVICES SAS, La sécurité des réseaux 
Société de Services en Logiciels Libres 
Tél : +33.5 56 64 15 32 
Matrix: @dani:fws.fr 
[ https://www.firewall-services.com/ | https://www.firewall-services.com ] 


_______________________________________________ 
pve-devel mailing list 
pve-devel@lists.proxmox.com 
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to