Bug 38437 - Skip IP / MAC / DNS registration while joining a docker container
Skip IP / MAC / DNS registration while joining a docker container
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
Stefan Gohmann
: interim-1
Depends on:
Blocks: 39331
  Show dependency treegraph
 
Reported: 2015-05-05 07:11 CEST by Stefan Gohmann
Modified: 2015-11-17 12:11 CET (History)
0 users

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 2015-05-05 07:11:50 CEST
By default the docker container shouldn't register its IP or MAC address.
Comment 1 Daniel Tröder univentionstaff 2015-08-28 20:19:44 CEST
Commit 63333 introduces the "-skipIpMac" command line option to the univention-join script. The created computer object will have no MAC or IP address assigned. 

The univention-nagios-client package must be removed from the installation image, because the joinscript fails, complaining it cannot be configured without an IP address.

Tested with a Samba4-masterDC and:
* S4-slave
* UCS-slave
* UCS-member

by launching a fresh VM, logging in after configuring the IP, replacing /usr/sbin/univention-join with the new version, editing it to hard code SKIPIPMAC="true" and uninstalling univention-nagios-client as soon as possible.

In all cases the computer object will not have an associated IP or MAC address, but in the cases of slaves, forward and reverse DNS entries will be created.

If a slave changes its own IP address without having contact to the master, the DNS forward record will be adjusted on the master the next time the slave can contact it, the reverse record will be left untouched.
Replication from master to slave did work after such an IP change. This should be tested more thoroughly.
Comment 2 Daniel Tröder univentionstaff 2015-08-31 09:02:47 CEST
Commit 63346 removes a bashism.
Comment 3 Stefan Gohmann univentionstaff 2015-09-26 13:54:01 CEST
It looks good. The docker container don't register the IP and MAC address while joining.

Please add a changelog entry.
Comment 4 Daniel Tröder univentionstaff 2015-09-28 11:00:35 CEST
Added to the changelog in r64031.
Comment 5 Stefan Gohmann univentionstaff 2015-09-29 07:30:14 CEST
(In reply to Daniel Tröder from comment #4)
> Added to the changelog in r64031.

OK
Comment 6 Stefan Gohmann univentionstaff 2015-11-17 12:11:35 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".