Bug 36294

Summary: S4-Connector fails due to traceback in univention.admin on master updated to UCS 4.0
Product: UCS Reporter: Arvid Requate <requate>
Component: S4 ConnectorAssignee: Arvid Requate <requate>
Status: CLOSED DUPLICATE QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: gohmann
Version: UCS 3.2Keywords: interim-3
Target Milestone: UCS 4.0   
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:

Description Arvid Requate univentionstaff 2014-10-25 10:27:36 CEST
Currently the S4-Connector tests fail on UCS 4.0 systems updated from 3.2.

connector-s4-status.log shows:

============================================================================
Sat Oct 25 04:15:54 2014
 --- connect failed, failure was: ---

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/main.py", line 280, in main
    connect()
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/main.py", line 178, in connect
    s4.initialize_ucs()
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 872, in initialize_ucs
    univention.admin.modules.init(self.lo,position,self.modules[key])
  File "/usr/lib/pymodules/python2.7/univention/admin/modules.py", line 116, in init
    univention.admin.ucr_overwrite_properties( module, lo )
  File "/usr/lib/pymodules/python2.7/univention/admin/__init__.py", line 53, in ucr_overwrite_properties
    ucr_prefix = ucr_property_prefix % module.module
AttributeError: 'NoneType' object has no attribute 'module'

 ---     retry in 30 seconds      ---
============================================================================

Don't know yet what the core issue is, but the order of these lines in admin/__init__.py doesn't look right:

============================================================
        ucr_prefix = ucr_property_prefix % module.module
        if not module:
                return
============================================================
Comment 1 Arvid Requate univentionstaff 2014-10-27 15:15:51 CET
The LDAP-registered/distributed UDM modules (like container/msgpo) failed to load because the corresponding python-support .public files still specified python2.6 as the target version.

*** This bug has been marked as a duplicate of bug 36286 ***
Comment 2 Stefan Gohmann univentionstaff 2014-11-04 07:47:37 CET
OK, duplicate.
Comment 3 Stefan Gohmann univentionstaff 2014-11-26 06:53:59 CET
UCS 4.0-0 has been released:
 http://docs.univention.de/release-notes-4.0-0-en.html
 http://docs.univention.de/release-notes-4.0-0-de.html

If this error occurs again, please use "Clone This Bug".