Author Topic: [SOLVED] Network module fails when vlans are enabled  (Read 417 times)

rchurchill

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
[SOLVED] Network module fails when vlans are enabled
« on: June 20, 2017, 03:20:12 pm »
I have Zentyal 5.0.8 fully patched (zentyal-network 5.0.6) with two interfaces eno1 (static IP used for management) and eno2 (Client access)
eno2 has 3 vlans setup on it 7,8 and 11

When i try to save settings the network module fails to restart

Looking at the log, Zentyal network appears to fail when trying to start and stop eno2, the root cause of this seems to be zentyal not creating an entry for eno2 in /etc/network/interfaces only entries for lo, eno1, vlan7, vlan8 and vlan11.

A network restart leaves the system with only eno1 up and no vlan access, and related services (dhcp,samba) not working correctly. Manual ifup works on the vlan interfaces and a reboot brings the system back to full working state until the next time network has to be restarted.

Example log line
Code: [Select]
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/U_It3bMgEB.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^J/sbin/ip address flush label eno2^J/sbin/ip address flush label eno2:*^J/sbin/ifdown --force -i /etc/network/interfaces eno2', 256, 'ARRAY(0x7c07d38)', 'ARRAY(0x34ea860)') called at /usr/share/perl5/EBox/Sudo.pm line 210
Any suggestions as to how to either get zentyal to write a dummy entry in /etc/network/interfaces for eno2 or stop the network module from trying to start eno2?

Richard
« Last Edit: June 22, 2017, 06:42:54 pm by rchurchill »

rchurchill

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Network module fails when vlans are enabled
« Reply #1 on: June 22, 2017, 06:42:37 pm »
I fixed the issue but modifying the interfaces template
Code: [Select]
/usr/share/zentyal/stubs/network/interfaces.mas
and added a manual entry for eno2 after lo

Code: [Select]
iface lo inet loopback

iface eno2 inet dhcp

Network modules now starts successfully along with dependent modules