Bug 56103 - Domain Setup failed: Host name is already assigned
Domain Setup failed: Host name is already assigned
Status: NEW
Product: UCS
Classification: Unclassified
Component: Join (univention-join)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
: 54624 56618 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-05-31 12:15 CEST by Mika Westphal
Modified: 2023-09-18 12:49 CEST (History)
1 user (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: 2023053121000065
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mika Westphal univentionstaff 2023-05-31 12:15:41 CEST
Version: 5.0-3 errata677
Role: domaincontroller_backup

Domain setup (this might take a while): Please visit https://help.univention.com/t/8842 for common problems during the join and how to fix them -- Host name *** is already assigned to a computer object of different role, please use a different name or remove that object. E: MAC address *** is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc. E: IP address 10.11.20.130 is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc, please remove that object or change the IP address.
Tue Mar  7 18:11:52 -05 2023: starting /usr/sbin/univention-join -dcname ***.***.loc -dcaccount AD-UCS -dcpwd /var/cache/univention-system-setup/secret -checkPrerequisites
running version check
OK: UCS version on ***.***.loc is higher or equal (5.03) to the local version (5.03).
Check if /var/lib/univention-directory-replication/failed.ldif exists
binddn search on ***.***.loc with UDM failed
Tue Mar  7 18:12:03 -05 2023: finish /usr/sbin/univention-join
Tue Mar  7 18:23:39 -05 2023: starting /usr/share/univention-join/univention-join -dcname ***.***.loc -dcaccount AD-UCS -dcpwd /tmp/tmp.BdVP0ooHpT
running version check
OK: UCS version on ***.***.loc is higher or equal (5.03) to the local version (5.03).
Check if /var/lib/univention-directory-replication/failed.ldif exists
Stopping slapd (via systemctl): slapd.service.
Starting slapd (via systemctl): slapd.service.
binddn search on ***.***.loc with UDM failed
Tue May 30 21:06:31 -05 2023
univention-join-hooks: looking for hook type "join/pre-join" on ***.***.loc
Found hooks:
  cn=ensure-minmum-ucs-version,cn=data,cn=univention,dc=***,dc=loc
Running: ensure-minmum-ucs-version (cn=ensure-minmum-ucs-version,cn=data,cn=univention,dc=***,dc=loc) in /tmp/tmplorp3395/tmp4d52a94x
univention-server-join: joins a server to an univention domain
copyright (c) 2001-2023 Univention GmbH, Germany

/etc/machine.secret: Permission denied
/etc/machine.secret: Permission denied
E: Host name *** is already assigned to a computer object of different role, please use a different name or remove that object. E: MAC address *** is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc. E: IP address 10.11.20.130 is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc, please remove that object or change the IP address.


**************************************************************************
* 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 -- Host name *** is already assigned to a computer object of different role, please use a different name or remove that object. E: MAC address *** is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc. E: IP address 10.11.20.130 is already assigned to cn=***,cn=dc,cn=computers,dc=***,dc=loc, please remove that object or change the IP address.
**************************************************************************
Comment 1 Philipp Hahn univentionstaff 2023-05-31 15:46:48 CEST
Works as designed: when you re-use the name of a host, which previously already existed (as its computer account is still there), and you change the role, join will fail to protect you from loosing that earlier computer account, which would unjoin that host. UCS cannot know if that host is currently offline or if this is a left-over because you disbanded that host.

Instructions to fix this problem are already printed; please follow them!

→ WORKS-FOR-ME
Comment 2 Philipp Hahn univentionstaff 2023-09-18 12:49:00 CEST
*** Bug 54624 has been marked as a duplicate of this bug. ***
Comment 3 Philipp Hahn univentionstaff 2023-09-18 12:49:11 CEST
*** Bug 56618 has been marked as a duplicate of this bug. ***