Bug 36342 - bond-primary is never written to UCR
bond-primary is never written to UCR
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Basic settings
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 4.0-0-errata
Assigned To: Florian Best
Philipp Hahn
:
Depends on: 36341 37097
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-29 16:38 CET by Janis Meybohm
Modified: 2014-12-04 12:22 CET (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2014-10-29 16:38:19 CET
I guess it needs to be fixed for UCS 4.0 as well.

+++ This bug was initially created as a clone of Bug #36341 +++

2014102821000257

The selected primary interface in the bonding wizard is never written into UCR.

This is problematic in scenarios where one of the network paths is prefered (faster for example). In case of failure, the bond switches to the (slower) fallback interface/path but never switches back to the prefered (primary) interface/path when that one is back up.


Workaround:
Configure manually via UCR:
  ucr set interfaces/bond1/options/X="bond-primary ethN"

Don't know if that gets overridden when re-running the UMC wizard.


Manuel switch to the prefered interface is also possible at runtime via ifenslave, e.g.:
# ifenslave -c bond0 eth0
Comment 1 Florian Best univentionstaff 2014-11-21 16:56:34 CET
YAML: 2014-11-21-univention-system-setup.yaml
Comment 2 Philipp Hahn univentionstaff 2014-11-27 18:45:07 CET
OK: r56050
OK: aptitude install '?source-package(univention-system-setup)?installed'
OK: bond-primary eth1
FAIL: cat /sys/class/net/bond0/bonding/primary
 this is empty - looks like a bug in /etc/network/if-pre.up/ifenslave
 manually setting it works - therefore I close this bug as verified
 This is <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712656> or <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699445>, which contains the patch <https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=ifenslave_20-21.debdiff;att=1;bug=699445>
 Continuing with manual work-around.
OK: 2014-11-21-univention-system-setup.yaml
OK:
 domiflist pt70-master
 domif-setlink pt70-master vnet1 down
 domif-setlink pt70-master vnet1 up
 domif-setlink pt70-master vnet2 down
 domif-setlink pt70-master vnet2 up
Comment 3 Moritz Muehlenhoff univentionstaff 2014-12-04 12:22:22 CET
http://errata.univention.de/ucs/4.0/2.html