Univention Bugzilla – Full Text Bug Listing |
Summary: | duplicate MAC prevents successful join | ||
---|---|---|---|
Product: | UCS | Reporter: | Nico Stöckigt <stoeckigt> |
Component: | Join (univention-join) | Assignee: | Jannik Ahlers <ahlers> |
Status: | CLOSED FIXED | QA Contact: | Philipp Hahn <hahn> |
Severity: | normal | ||
Priority: | P5 | CC: | ahlers, brodersen, damrose, hahn, requate, v.mayer |
Version: | UCS 4.4 | ||
Target Milestone: | UCS 4.4-0-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=49185 | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 5: Major Usability: Impairs usability in key scenarios |
Who will be affected by this bug?: | 2: Will only affect a few installed domains | How will those affected feel about the bug?: | 5: Blocking further progress on the daily work |
User Pain: | 0.286 | Enterprise Customer affected?: | Yes |
School Customer affected?: | Yes | ISV affected?: | |
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2019041521000944 | Bug group (optional): | Workaround is available |
Max CVSS v3 score: | |||
Bug Depends on: | 48475 | ||
Bug Blocks: |
Description
Nico Stöckigt
2019-04-15 17:11:31 CEST
This still happened in a customers environment with
> univention-join 11.0.1-15A~4.4.0.201903121842
Please add the join log and the network interface configuration of the affected system here (e.g. ip a, brctl show) All I have so far is ====================================================================== root@slave01:~# univention-join univention-join: joins a computer to an ucs domain copyright (c) 2001-2019 Univention GmbH, Germany Enter DC Master Account : Administrator Enter DC Master Password: Search DC Master: done Check DC Master: done Stop LDAP Server: done Search ldap/base done Start LDAP Server: done Search LDAP binddn done Sync time: done cat: /sys/class/net/bonding_masters/address: Ist kein Verzeichnis Running pre-join hook(s): done Join Computer Account: ************************************************************************** * Join failed! * * Contact your system administrator * ************************************************************************** * Message: Please visit https://help.univention.com/t/8842 for common problems during the join and how to fix them -- failed to modify DC Slave cn=slave01,cn=dc,cn=computers,dc=schule,dc=domain,dc=tld [LDAP Error: Type or value exists: macAddress: value #0 provided more than once] ************************************************************************** Depending on the mode of operation, bond interfaces use the same physical mac. -> This "mac_addr="$(find /sys/class/net/* -not -lname ../../devices/virtual/\* -exec cat {}/address \;)"" in univention-join needs to remove duplicate mac addresses. We also should check this error message: "cat: /sys/class/net/bonding_masters/address: Ist kein Verzeichnis". https://wiki.linuxfoundation.org/networking/bonding The mode used here is 802.3ad. From /etc/network/interfaces: auto trk1 iface trk1 inet manual bond-miimon 100 bond-mode 4 bond-slaves eno1 eno2 Workaround: Create computer object manually, and join the computer with 'univention-join -skipIpMac' In the script management/join/univention-join, we have this line:
> mac_addr="$(find /sys/class/net/* -not -lname ../../devices/virtual/\* -exec cat {}/address \;)"
, which gets a list of all mac addresses of physical network devices. It seems to be incompatible with bonding.
Successful build Package: univention-join Version: 11.0.1-16A~4.4.0.201904291745 Branch: ucs_4.4-0 Scope: errata4.4-0 bacad59 Bug #49298: yaml d60a129 Bug #49298: Repair join when using bonding (In reply to Jannik Ahlers from comment #8) > In the script management/join/univention-join, we have this line: > > mac_addr="$(find /sys/class/net/* -not -lname ../../devices/virtual/\* -exec cat {}/address \;)" > , which gets a list of all mac addresses of physical network devices. It > seems to be incompatible with bonding. I fixed two things in that line: - the cat error that occurs when the find command finds a file instead of a folder (or a symlink to a folder) - duplicate mac addresses get removed OK: apt install univention-join=11.0.1-17A~4.4.0.201905021401 OK: tail -f /home/Administrator/.univention-server-join.log OK: ip --color link show OK: univention-join OK: errata-announce -V --only univention-join.yaml FIXED: univention-join.yaml -> git:85a9f5c9f7 OK: git log --grep='Bug #49298' |