Bug 40437

Summary: UCS@school setup fails as univention-ldb-modules doesn't pull proper libldb1 version
Product: UCS Reporter: Arvid Requate <requate>
Component: Samba4Assignee: Arvid Requate <requate>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: critical    
Priority: P3 CC: schwardt, walkenhorst
Version: UCS 4.1   
Target Milestone: UCS 4.1-0-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on:    
Bug Blocks: 45993    

Description Arvid Requate univentionstaff 2016-01-14 22:21:00 CET
I took a UCS 4.1-0 errata 1 Samba/AD Master, opened UMC and installed the UCS@school installation wizard. Then I installed a Singelserver and it got stuck here:

============================================================================
23.11.15 17:21:34.085  MODULE      ( PROCESS ) : ldb: module version mismatch in ../modules/univention_ldb_log.c : ldb_version=1.1.21 module_version=1.1.24
23.11.15 17:21:34.085  MODULE      ( PROCESS ) : ldb: failed to initialise module /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/samba/univention_ldb_log.so : Unavailable
23.11.15 17:21:34.085  MODULE      ( PROCESS ) : ldb: failed to initialise module /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/samba : Unavailable
23.11.15 17:21:34.109  MODULE      ( PROCESS ) : ldb: module version mismatch in ../modules/univention_ldb_log.c : ldb_version=1.1.21 module_version=1.1.24
23.11.15 17:21:34.109  MODULE      ( PROCESS ) : ldb: failed to initialise module /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/samba/univention_ldb_log.so : Unavailable
23.11.15 17:21:34.109  MODULE      ( PROCESS ) : ldb: failed to initialise module /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/samba : Unavailable
23.11.15 17:21:34.110  MODULE      ( PROCESS ) : Setting windows printer driver for PDFDrucker ...
============================================================================

UCR:

repository/online/server: http://univention-repository.knut.univention.de/
repository/online/component/ucsschool_20160111/description: UCS@school
repository/online/component/ucsschool_20160111/localmirror: false
repository/online/component/ucsschool_20160111/server: appcenter.software-univention.de
repository/online/component/ucsschool_20160111/unmaintained: disabled
repository/online/component/ucsschool_20160111/version: current
repository/online/component/ucsschool_20160111: enabled

Relevant packages:

ii  libunivention-ldb-modules                   4.0.0-1.71.201512161604
ii  libldb1:amd64                               2:1.1.21-1.60.201508182112

apt-cache shows what would be available:

4.1-0-errata/amd64/libunivention-ldb-modules_4.0.0-1.71.201512161604_amd64.deb
4.1-0-errata/amd64/libldb1_1.1.24-1.67.201512111426_amd64.deb


So apparently libunivention-ldb-modules should better specify it's dependencies properly:

Depends: libc6 (>= 2.3), libldb1 (>= 0.9.21)

That's not enough and I don't know where it got that from. debian/control says:

Package: libunivention-ldb-modules
Architecture: any
Section: libs
Depends: ${misc:Depends},
        ${shlibs:Depends},
        libldb1,
        libunivention-config0,
        libunivention-policy0,
        python-samba,
        ldb-tools,
        univention-samba4 (>= 2.0.44-3)
Comment 1 Arvid Requate univentionstaff 2016-01-26 22:11:50 CET
The dependency is automatically created by dpkg-shlibdeps. The actual error comes from the ldb module initialization code itself, which performs a strict version comparison (this is the template behaviour of Samba ldb modules). I relaxed this check to issue a warning but not treat this as a fatal error. A) we have Debian shared library version dependency creation to take care of that and B) if it's fatal, we will note that ourselves. Our ldb-Modules don't write Data to the LDB backend, so there is not too much that can get messed up in that unlikely case.

I have rebuilt the package in errata4.1-0.
Advisory: univention-ldb-modules.yaml
Comment 2 Felix Botner univentionstaff 2016-01-28 15:40:46 CET
OK

 * with UCS 4.1 + samba from 4.1-0 (errata repo disabled) + UCS@school 
   singleserver, the installation gets stuck

 * with UCS 4.1 + samba from 4.1-0 (errata repo disabled) + new libunivention-
   ldb-modules and UCS@school singleserver, i get a warning but the installation 
   succeeds


Modified 1 records successfully
Setting windows printer driver for PDFDrucker ...
Successfully set PDFDrucker to driver MS Publisher Color Printer.
ldb: WARNING: module version mismatch in ../modules/univention_ldb_log.c : ldb_version=1.1.21 module_version=1.1.24
ldb: WARNING: module version mismatch in ../modules/univention_samaccountname_ldap_check.c : ldb_version=1.1.21 module_version=1.1.24
Modified 1 records successfully
2016-01-28 15:02:17.817625641+01:00 (in joinscript_save_current_version)
Joinscript 99ucs-school-umc-printermoderation.inst finished with exitcode 0
...

OK - new installation with errata4.1-0

OK - YAML
Comment 3 Janek Walkenhorst univentionstaff 2016-02-04 13:48:33 CET
<http://errata.software-univention.de/ucs/4.1/85.html>