Bug 38334 - Make docker containers register their current IP address in LDAP on boot
Make docker containers register their current IP address in LDAP on boot
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Daniel Tröder
Arvid Requate
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-23 13:47 CEST by Arvid Requate
Modified: 2015-11-17 12:12 CET (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:
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 Arvid Requate univentionstaff 2015-04-23 13:47:33 CEST
UCS systems running in docker containers need to update their IP addresses in LDAP on boot.

We have /etc/rc2.d/S98univention-network-common but that only registers the address when interfaces/eth0/type=dhcp. Maybe we simply provide a slightly modified version in univention-docker-container-mode.



Background:

Docker (1.3.2) dynamically assigns a new IP address to each container whenever the container is (re-)started. While future Docker versions will provide options to configure its behavior in more detail, currently there are only some third party workaround scripts, none of which look satisfying yet.
Comment 1 Arvid Requate univentionstaff 2015-04-23 18:00:00 CEST
univention-docker-container-mode now installs an adjusted version of the univention-network-common init script. The adjusted version uses --force to write the IP to UMC.
Comment 2 Stefan Gohmann univentionstaff 2015-08-17 08:52:48 CEST
Please merge the changes to 4.1.
Comment 3 Stefan Gohmann univentionstaff 2015-08-28 11:20:03 CEST
Maybe you merged it already.
Comment 4 Daniel Tröder univentionstaff 2015-08-31 09:31:42 CEST
Original commit 60126 was merged to 4.1 in 63270.
Comment 5 Arvid Requate univentionstaff 2015-10-07 19:18:52 CEST
Ok, I also added a UCS 4.1 changelog entry:

 Docker images running UCS in container mode now update      
 their IP addresses in LDAP. This is useful because Docker   
 dynamically assignes IP addresses during container restarts.
 Additionally these containers also try to register the IP   
 also with a <literal>consul</literal> and <literal>etcd</literal>
 service running the Docker host.
Comment 6 Arvid Requate univentionstaff 2015-10-07 19:26:13 CEST
Ok, the changelog part about etcd and consul has been split of for Bug 38331..
Comment 7 Stefan Gohmann univentionstaff 2015-11-17 12:12:17 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

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