dentproject / dentOS

dentOS SwitchDev based NOS
Other
200 stars 58 forks source link

Include brctl and python-mako packages for ifupdown2 to function properly #234

Open adaraiseh opened 12 months ago

adaraiseh commented 12 months ago

I've been test stretch dentOS on a virtual machine, I was trying to use ifupdown2 to be the primary network config tool as I understand it is supposed to be like that for dentOS. However, current builds for stretch and buster are missing bridge-utils and python-mako which are required for ifupdown2 to function properly, I couldn't find them in common release packages: builds/any/rootfs/stretch/common/all-base-packages.yml builds/any/rootfs/buster/common/all-base-packages.yml

Test outputs:

root@localhost:~# ifreload -a
warning: unable to set template lookup path /etc/network/ifupdown2/templates ('NoneType' object is not callable): are you sure 'python-mako'is installed?
warning: /etc/network/interfaces: line10: enp0s${i}: unexpected characters in interface name
error: /etc/network/interfaces: line11: iface enp0s${i}: invalid syntax '%endfor'
warning: /sbin/brctl: missing - bridge operation may not work as expected. Please check if 'bridge-utils' package is installed
[ 2094.785442] vlan100: port 1(enp0s10.100) entered blocking state
[ 2094.788689] vlan100: port 1(enp0s10.100) entered disabled state
[ 2094.793358] device enp0s10.100 entered promiscuous mode
[ 2094.795320] device enp0s10 entered promiscuous mode
[ 2094.801152] vlan100: port 1(enp0s10.100) entered blocking state
[ 2094.802178] vlan100: port 1(enp0s10.100) entered listening state
root@localhost:~# [ 2109.990862] vlan100: port 1(enp0s10.100) entered learning state
[ 2125.349568] vlan100: port 1(enp0s10.100) entered forwarding state
[ 2125.351175] vlan100: topology change detected, propagating
[ 2125.352304] IPv6: ADDRCONF(NETDEV_CHANGE): vlan100: link becomes ready

After installing them manually it seems to be working fine.

paulmenzel commented 12 months ago

(There is a typo in the title: python-make → python-mako.)

Thank you for the report. I never used ifreload -a, and only used sudo systemctl restart networking.