Bug 48026 - Traceback: AttributeError: 'module' object has no attribute 'mailinglist_name'
Traceback: AttributeError: 'module' object has no attribute 'mailinglist_name'
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-2-errata
Assigned To: Dirk Wiesenthal
UMC maintainers
:
Depends on: 48020
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-19 15:48 CEST by Felix Botner
Modified: 2019-03-30 09:04 CET (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.137
Enterprise Customer affected?:
School Customer affected?:
ISV affected?: Yes
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018101921000758
Bug group (optional): External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2018-10-19 15:48:23 CEST
+++ This bug was initially created as a clone of Bug #48020 +++


now i get 

Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-dnsedit", line 460, in <module>
    main()
  File "/usr/share/univention-directory-manager-tools/univention-dnsedit", line 421, in main
    add_srv_record(*args)
  File "/usr/share/univention-directory-manager-tools/univention-dnsedit", line 204, in add_srv_record
    record.create()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 539, in create
    dn = self._create(response=response, serverctrls=serverctrls)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1180, in _create
    self._ldap_post_create()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/dns/srv_record.py", line 154, in _ldap_post_create
    self._updateZone()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/dns/srv_record.py", line 141, in _updateZone
    self.superordinate.open()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/dns/forward_zone.py", line 260, in open
    self['refresh'] = univention.admin.mapping.unmapUNIX_TimeInterval(soa[3])
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 433, in __setitem__
    p = s.parse(value)
  File "/usr/lib/pymodules/python2.7/univention/admin/syntax.py", line 1616, in parse
    return super(UNIX_TimeInterval, cls).parse(texts)
TypeError: super(type, obj): obj must be an instance or subtype of type

dunring the installation of univention-s4-connector
Comment 1 Felix Botner univentionstaff 2018-10-19 15:52:44 CEST
Please revert everything from Bug #47910 and #48020!
Comment 2 Dirk Wiesenthal univentionstaff 2018-10-19 15:53:37 CEST
Reverted reloading of syntax.py itself in
  univention-directory-manager-modules 13.0.25-6A~4.3.0.201810191551

This error may probably still happen in syntax classes in syntax.d/*.py, but for now, we have fixed it for syntax classes in syntax.py itself.
Comment 3 Felix Botner univentionstaff 2018-10-19 15:55:34 CEST
(In reply to Felix Botner from comment #1)
> Please revert everything from Bug #47910 and #48020!

not #47910 but Bug #47861
Comment 4 Felix Botner univentionstaff 2018-10-19 16:11:42 CEST
ok. univention-install univention-s4-connector
ok revert
ok yaml
Comment 5 Philipp Hahn univentionstaff 2018-10-19 16:34:03 CEST
<http://errata.software-univention.de/ucs/4.3/287.html>
Comment 6 Daniel Tröder univentionstaff 2018-10-22 07:24:16 CEST
Just an explanation:

(In reply to Felix Botner from comment #0)
> Traceback (most recent call last):
> [..]
>   File "/usr/lib/pymodules/python2.7/univention/admin/syntax.py", line 1616,
> in parse
>     return super(UNIX_TimeInterval, cls).parse(texts)
> TypeError: super(type, obj): obj must be an instance or subtype of type

I have seen this error before: Bug #48021.

The problem is that at compile time UNIX_TimeInterval was loaded the 1st time, but when used in super(UNIX_TimeInterval, cls) it had already been loaded a second time. Thus it was a new class in a new module and as such not the original super class anymore.
Comment 7 Johannes Keiser univentionstaff 2018-10-26 17:52:52 CEST
External feedback: 
Version: 4.3-2 errata286 (Neustadt)

Interner Server-Fehler in "udm/query (dns/dns)".
Request: udm/query (dns/dns)

  File "%PY2.7%/notifier/threads.py", line 78, in _run
    tmp = self._function()
  File "%PY2.7%/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 583, in _thread
    superordinate = mod.get(superordinate)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 84, in _decorated
    return method(*args, **kwargs)
  File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 521, in get
    obj.open()
  File "%PY2.7%/univention/admin/handlers/dns/forward_zone.py", line 260, in open
    self['refresh'] = univention.admin.mapping.unmapUNIX_TimeInterval(soa[3])
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 433, in __setitem__
    p = s.parse(value)
  File "%PY2.7%/univention/admin/syntax.py", line 1616, in parse
    return super(UNIX_TimeInterval, cls).parse(texts)
TypeError: super(type, obj): obj must be an instance or subtype of type

Role: domaincontroller_master