Bug 31174 - 05univention-bind.inst hangs because link local address is not stored in UCR
05univention-bind.inst hangs because link local address is not stored in UCR
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 3.1
All Linux
: P5 normal (vote)
: UCS 3.2
Assigned To: Felix Botner
Moritz Muehlenhoff
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-24 19:12 CEST by Philipp Hahn
Modified: 2013-11-19 06:43 CET (History)
2 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): Troubleshooting
Max CVSS v3 score:


Attachments
Logfile (81.14 KB, text/plain)
2013-04-29 10:01 CEST, Philipp Hahn
Details
join.log (32.00 KB, text/plain)
2013-04-29 10:55 CEST, Philipp Hahn
Details
installation.log (220.66 KB, text/plain)
2013-04-29 10:58 CEST, Philipp Hahn
Details
installation_profile (1.08 KB, text/plain)
2013-04-30 07:55 CEST, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2013-04-24 19:12:46 CEST
UCS-3.1-1 amd64 Master installation
During setup, no DHCP server was found and a IPv4 Link Local address was chosen by the installer.

The network configuration is not written to the installation_profile and thus not to UCR interfaces/eth0/*.
Because of that the hostname is not written to /etc/hosts.
Because of that the symbolic hostname in /etc/ldap/ldap.conf and UCR ldap/master can't be resolved. (DNS is not yet running; that's what the join script is trying to do)
So /usr/share/univention-admin-tools/univention-dnsedit can't contact the LDAP server and the join stalls.
Comment 1 Stefan Gohmann univentionstaff 2013-04-25 06:33:53 CEST
I've tested an installation of an UCS 3.1-1 amd64 master which was configured via DHCP. The server got a link local address but I was not able to reproduce this behavior.

Could you append the logfiles?
Comment 2 Philipp Hahn univentionstaff 2013-04-29 10:01:24 CEST
Created attachment 5199 [details]
Logfile

(In reply to comment #1)
> I've tested an installation of an UCS 3.1-1 amd64 master which was configured
> via DHCP. The server got a link local address

To be clear: DHCP did *NOT* return an address, so the link local address 169.254.x.y/16 generated by the installer was used.

> but I was not able to reproduce this behavior.

Reproduced it on all 6 computers of our training lab and on a VM on xen15, which is available for debugging.

> Could you append the logfiles?

See this attachment.
Comment 3 Philipp Hahn univentionstaff 2013-04-29 10:55:21 CEST
Created attachment 5200 [details]
join.log
Comment 4 Philipp Hahn univentionstaff 2013-04-29 10:58:44 CEST
Created attachment 5201 [details]
installation.log
Comment 5 Philipp Hahn univentionstaff 2013-04-30 07:55:35 CEST
Created attachment 5207 [details]
installation_profile
Comment 6 Stefan Gohmann univentionstaff 2013-04-30 08:08:09 CEST
(In reply to comment #0)
> UCS-3.1-1 amd64 Master installation
> During setup, no DHCP server was found and a IPv4 Link Local address was chosen
> by the installer.

OK, it happens if you press F5 for trying the DHCP server and you got no answer. The link local address will be insert in the IPv4 field but the address is not written to the profile.

If you got an IP via DHCP the network settings will be written to the profile.

The installer should not write the link local address into the IP field if no IP was returned.
Comment 7 Moritz Muehlenhoff univentionstaff 2013-05-31 10:42:59 CEST
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2.

As such, this bug is moved to the new target milestone.
Comment 8 Felix Botner univentionstaff 2013-07-01 16:05:34 CEST
I could not reproduce the actual problem, but changed the network settings ...

 * DHCP query button in the network settings has been removed
 * DHCP query is performed when dhcp is selected
 * if we get an address, we continue with this address, if not
   we continue with a link-local (169.254...) address

Tested the installation of an UCS master with interfaces/eth0/type=dhcp and no valid dhcp offer, installation was successful, join fine and after the boot of the system i had an 169.254... ip address 

QA 
 * static addess installation
 * dhcp installation with valid dhcp address
 * dhcp installation without a dhcp address (link local)
 * profil bases installation with dhcp/static address
Comment 9 Moritz Muehlenhoff univentionstaff 2013-08-12 15:26:49 CEST
> QA 
>  * static addess installation

Worked as expected in various installations.

>  * dhcp installation with valid dhcp address

Selecting "DHCP" in the network configuration triggers an immediate DHCP request. An installation of a DC master with such a setup and basic UMC tests were succesful.

>  * dhcp installation without a dhcp address (link local)

Selecting "DHCP" in the network configuration on a system with a pulled network cable triggers an immediate DHCP request. This DHCP request naturally fails and an error message is displayed. If one proceeds with F12 a link local address is assigned. An installation of a DC master with such a setup and basic UMC tests were successful.

Tests with Univention Net Installer as still missing.
Comment 10 Moritz Muehlenhoff univentionstaff 2013-08-21 11:53:06 CEST
A profile-based installation with DHCP was also successful.
Comment 11 Stefan Gohmann univentionstaff 2013-11-19 06:43:52 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

If this error occurs again, please use "Clone This Bug".