Bug 39601 - AD member mode - host record for the docker interface in AD
AD member mode - host record for the docker interface in AD
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-0-errata
Assigned To: Felix Botner
Stefan Gohmann
: 40137 (view as bug list)
Depends on:
Blocks: 40088
  Show dependency treegraph
Reported: 2015-10-20 13:43 CEST by Felix Botner
Modified: 2015-12-29 09:29 CET (History)
4 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):
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2015-10-20 13:43:52 CEST
Installed a 4.1 UCS master as AD member. In AD my UCS system now has 3 host records!?

nslookup ucs-1386

Name:   ucs-1386.w2k12.test
Name:   ucs-1386.w2k12.test
Name:   ucs-1386.w2k12.test
Address: -> docker0 -> ip during system setup -> this is the actual ip of my master

ucs-1386 -> hostname of my master -> ip of the ADS
Comment 1 Arvid Requate univentionstaff 2015-10-20 19:38:05 CEST
I guess univention-samba.postinst also needs to

  ucr set samba/register/exclude/interfaces='docker0'

like in univention-samba4.
Comment 2 Felix Botner univentionstaff 2015-12-01 18:42:55 CET

 * sets samba/register/exclude/interfaces?docker0 as default
 * 01univention-samba_main ignores all interfaces from 
   * get list if all interfaces,
   * remove all samba/register/exclude/interfaces from interfaces
   * remove appliance-mode-temporary interface from interfaces
   * set bind interfaces only = yes
   * set interfaces = interfaces
 * 01univention-samba_main ignores samba/register/exclude/interfaces
   if samba/interfaces/bindonly is set

YAML: univention-samba.yaml
Comment 3 Stefan Gohmann univentionstaff 2015-12-02 07:57:07 CET
Test: YAML: OK

Test: docker0 set by default: OK

Test: samba/register/exclude/interfaces can be set to eth0 and to ethFoo: Fail

root@ucs-6611:~# ucr set samba/register/exclude/interfaces='docker0 eth0 ethFoo' 
Setting samba/register/exclude/interfaces
Multifile: /etc/samba/smb.conf
Traceback (most recent call last):
  File "<stdin>", line 41, in <module>
ValueError: list.remove(x): x not in list

Can you add a simply check?

Test: lo is still in the list of the interfaces: OK

Test: samba/interfaces/bindonly is preferred: OK

Test: docker0 interface is not registered by default: OK
Comment 4 Felix Botner univentionstaff 2015-12-02 09:53:54 CET
Comment 5 Stefan Gohmann univentionstaff 2015-12-02 10:05:55 CET
(In reply to Felix Botner from comment #4)
> fixed

OK, works now:
root@ucs-6611:~# ucr set samba/register/exclude/interfaces='docker0 ethFoo' 
Setting samba/register/exclude/interfaces
Multifile: /etc/samba/smb.conf
root@ucs-6611:~# grep 'interfaces =' /etc/samba/smb.conf
        interfaces = lo eth0
Comment 6 Janek Walkenhorst univentionstaff 2015-12-02 12:20:29 CET
Comment 7 Stefan Gohmann univentionstaff 2015-12-29 09:29:09 CET
*** Bug 40137 has been marked as a duplicate of this bug. ***