Bug 36340 - Bonding configuration generates wrong miimon configuration
Bonding configuration generates wrong miimon configuration
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Basic settings
UCS 4.0
Other Linux
: P5 critical (vote)
: UCS 4.0-0-errata
Assigned To: Florian Best
Philipp Hahn
:
Depends on: 36339
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-29 15:52 CET by Stefan Gohmann
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 Stefan Gohmann univentionstaff 2014-10-29 15:52:54 CET
I guess it needs to be fixed for UCS 4.0 as well.

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

2014102821000257

The UMC module does not set MII link monitoring frequency correctly:

interfaces/bond0/options/2: miimon 100

should be:

interfaces/bond0/options/2: bond-miimon 100

Therefore, in bond-modes like active-backup, the active slave is _never_ switched so the network is down when the active slave goes down!


A fix should also correct all broken configurations in UCR.

Workaround:
1) Set "bond-miimon <Frequency in milliseconds>" manually via "Additional bonding options" in UMC wizard.
BUT: this would need to be manually removed when this bug is fixed because ifup complains about duplicate options

/etc/network/interfaces:39: duplicate option
ifup: couldn't read interfaces file "/etc/network/interfaces"


2) Correct UCR manually:
ucr search --brief --non-empty '^interfaces/.*/options/' | \
  sed -rne 's,(interfaces/.*/options/.*): (miimon .*)$,\1=bond-\2,p' | \
  xargs -d '\n' --no-run-if-empty ucr set

BUT: Re-running the UMC wizard for that interface will again break the configuration!
Comment 1 Florian Best univentionstaff 2014-11-21 16:56:31 CET
YAML: 2014-11-21-univention-system-setup.yaml
Comment 2 Philipp Hahn univentionstaff 2014-11-27 18:44:48 CET
OK: r56050
OK: aptitude install '?source-package(univention-system-setup)?installed'
OK: bond-miimon 101
OK: cat /sys/class/net/bond0/bonding/miimon
OK: 2014-11-21-univention-system-setup.yaml
Comment 3 Moritz Muehlenhoff univentionstaff 2014-12-04 12:22:16 CET
http://errata.univention.de/ucs/4.0/2.html