I noticed that no one was interested in my problem for almost a year
So, I decided to look for the problem and put here more information about the bonding error. Maybe now someone will find a way to help me.
Currently I have Zentyal version 4.0.5 and continues I have problems with bonding. I looked through the logs and noticed that the method
_preSetConf from file
/usr/share/perl5/EBox/Network.pm generates an error. According to me there is an error in the 3716 line:
push (@cmds, "/usr/sbin/brctl delbr $if");
I think it should be like this:
my $bridge = $self->ifaceBridge($if);
push (@cmds, "/sbin/brctl delif br$bridge $if");
I changed it, but there are still bond0 errors. Logs are as follows:
/sbin/ip address flush label bond0
/sbin/ip address flush label bond0:*
/sbin/ifdown --force -i /etc/network/interfaces bond0
/sbin/brctl delif br1 bond0 failed.
Error output: interface bond0 does not exist!
/sbin/ip address flush label eth0
/sbin/ip address flush label eth0:*
/sbin/ifenslave --force -d bond0 eth0
/sbin/ifdown --force -i /etc/network/interfaces eth0 failed.
Error output: bond0: no such interface
/sbin/ip address flush label eth1
/sbin/ip address flush label eth1:*
/sbin/ifenslave --force -d bond0 eth1
/sbin/ifdown --force -i /etc/network/interfaces eth1 failed.
Error output: bond0: no such interface
/sbin/ip address flush label eth2
/sbin/ip address flush label eth2:*
/sbin/ifenslave --force -d bond0 eth2
/sbin/ifdown --force -i /etc/network/interfaces eth2 failed.
Error output: bond0: no such interface
_preSetConf Method generates all of the above errors.
I hope that there will be a person who can help solve this problem, because I think there is a bug in Zentyal. I am very keen on adding bond0 to the bridge, and I can not do it using Zentyal.
I will continue testing and looking for solution...