Bug 38662 - univention-join depends on nscd, but does not specify it
univention-join depends on nscd, but does not specify it
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Dirk Wiesenthal
Daniel Tröder
: interim-1
Depends on:
Blocks: 38887
  Show dependency treegraph
 
Reported: 2015-06-08 14:38 CEST by Dirk Wiesenthal
Modified: 2015-11-17 12:12 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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2015-06-08 14:38:36 CEST
There are several nscd calls in univention-join and univention-server-join, but the package does not Depends: nscd. This leads to problems when trying to join a minimal UCS (periphery of docker).

Either add the Depends: in debian/control or add a "if [ -x nscd ]". I vote for the first solution: Bug#30886 had something to do with nscd not being called. But maybe that bug does not apply when no nscd is installed at all...
Comment 1 Philipp Hahn univentionstaff 2015-06-08 15:09:19 CEST
(In reply to Dirk Wiesenthal from comment #0)
> There are several nscd calls in univention-join and univention-server-join,
> but the package does not Depends: nscd.

nscd is optional, but IFF it is installed, its caches must be invalidated from time to time.

> ... or add a "if [ -x nscd ]".

Does not work, as "test" expects a fully qualified filename. Try that instead:

if type nscd >/dev/null 2>&1
then
  nscd -i $TABLE
fi
Comment 2 Dirk Wiesenthal univentionstaff 2015-06-24 01:40:44 CEST
Fixed in
  univention-join 7.1.3-1.502.201506240048
  (ucs-container)

Done with "test -x /usr/sbin/nscd && " - as I found this snippet in other scripts in univention-join.
Comment 3 Dirk Wiesenthal univentionstaff 2015-09-22 15:26:13 CEST
Merged to UCS 4.1 in
  univention-join (8.0.0-1)
Comment 4 Stefan Gohmann univentionstaff 2015-09-23 08:11:49 CEST
Please add a changelog entry.
Comment 5 Dirk Wiesenthal univentionstaff 2015-09-30 10:25:38 CEST
(In reply to Stefan Gohmann from comment #4)
> Please add a changelog entry.

Added
Comment 6 Daniel Tröder univentionstaff 2015-10-02 15:13:49 CEST
OK: commit 63009
OK: build to 4.1
OK: changelog entry
Comment 7 Stefan Gohmann univentionstaff 2015-11-17 12:12:07 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".