Bug 42814 - @school join fails due to slapd restart
@school join fails due to slapd restart
Status: RESOLVED DUPLICATE of bug 40259
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-02 10:37 CET by Stefan Gohmann
Modified: 2016-11-03 12:51 CET (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: 6: Setup Problem: Issue for the setup process
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 2016-11-02 10:37:07 CET
The following test setup fails:
http://jenkins.knut.univention.de:8080/job/UCSschool%204.1/job/UCSschool%204.1%20(R2)%20Multiserver/SambaVersion=s4-with-administration/289/


Slave log output:
--------------------------------------------------------------------------------
Tue Nov  1 21:32:56 EDT 2016: starting /usr/sbin/univention-join -dcaccount Administrator -dcpwd /tmp/tmpGTuxua
running version check
OK: UCS version on master203.autotest203.local is higher or equal (4.14) to the local version (4.14).
Stopping univention-s4-connector daemon.
start-stop-daemon: warning: failed to kill 8423: No such process
failed.
Stopping ldap server(s): slapd ...done.
Setting dns/backend
Restarting bind9 daemon: ...done.
Stopping Samba AD DC daemon: samba.
Samba is configured as AD DC, service smbd is controlled by the main samba daemon.
Stopping NetBIOS name server: nmbd.
Starting ldap server(s): slapd ...done.
Tue Nov  1 21:33:11 EDT 2016
univention-server-join: joins a server to an univention domain
copyright (c) 2001-2016 Univention GmbH, Germany

E: failed to modify DC Slave cn=slave2033,cn=dc,cn=server,cn=computers,ou=School2,dc=autotest203,dc=local [LDAP Error: Can't contact LDAP server]
Tue Nov  1 21:33:13 EDT 2016: finish /usr/sbin/univention-join
--------------------------------------------------------------------------------

The syslog on the master shows:
--------------------------------------------------------------------------------
Nov  1 21:33:13 master203 logger: /etc/init.d/slapd graceful-restart (pid: 19513, ppid:19419 univention-dire)
Nov  1 21:33:13 master203 logger: /etc/init.d/slapd graceful-stop (pid: 19521, ppid:19513 slapd)
Nov  1 21:33:13 master203 logger: /etc/init.d/slapd start (pid: 19534, ppid:19513 slapd)
--------------------------------------------------------------------------------

From the master listener.log:
--------------------------------------------------------------------------------
01.11.16 21:32:56.358  DEBUG_INIT
UNIVENTION_DEBUG_BEGIN  : uldap.__open host=master203.autotest203.local port=7389 base=dc=autotest203,dc=local
UNIVENTION_DEBUG_END    : uldap.__open host=master203.autotest203.local port=7389 base=dc=autotest203,dc=local
01.11.16 21:32:57.470  LISTENER    ( PROCESS ) : updating 'cn=slave2033,cn=dc,cn=computers,dc=autotest203,dc=local' command r
01.11.16 21:32:57.499  LISTENER    ( PROCESS ) : updating 'cn=slave2033,cn=dc,cn=server,cn=computers,ou=School2,dc=autotest203,dc=local' command a
01.11.16 21:32:58.226  LISTENER    ( PROCESS ) : updating 'cn=DC Slave Hosts,cn=groups,dc=autotest203,dc=local' command m
01.11.16 21:32:58.240  LISTENER    ( PROCESS ) : updating 'cn=Enterprise Domain Controllers,cn=groups,dc=autotest203,dc=local' command m
01.11.16 21:32:58.254  LISTENER    ( PROCESS ) : updating 'cn=DC-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local' command m
01.11.16 21:32:58.274  LISTENER    ( PROCESS ) : updating 'cn=OUschool2-DC-Verwaltungsnetz,cn=ucsschool,cn=groups,dc=autotest203,dc=local' command m
18959
Initiating graceful reload of ldap server(s).
Sending HUP to ldap server(s): slapd ...done.
Starting ldap server(s): slapd ...done.
Checking Schema ID: ...done.
--------------------------------------------------------------------------------

The UCS@school installer moves the server account. Afterwards, the umc-service-providers.py listener module restarts the slapd.

We've different options to fix it, I guess the best one would be to make univention-server-join more robust.
Comment 1 Daniel Tröder univentionstaff 2016-11-02 10:53:30 CET

*** This bug has been marked as a duplicate of bug 40259 ***
Comment 2 Florian Best univentionstaff 2016-11-03 12:51:30 CET
(In reply to Daniel Tröder from comment #1)
> 
> *** This bug has been marked as a duplicate of bug 40259 ***
Are you sure about this? The reason here is the slapd restart but is this also the reason for Bug #40259?