Bug 49880 - S4C: insufficientInformation: No superordinate object given
S4C: insufficientInformation: No superordinate object given
Status: NEW
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
: 49355 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-19 19:44 CEST by Florian Best
Modified: 2023-10-24 22:15 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020072921000222
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 Florian Best univentionstaff 2019-07-19 19:44:08 CEST
attachment 10121 [details] (s4connector.log from a ucs-test run) contains 157 times:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/s4connector/__init__.py", line 1540, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/dns.py", line 1709, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/dns.py", line 1001, in ucs_host_record_create
    newRecord = univention.admin.handlers.dns.host_record.object(None, s4connector.lo, position, dn=None, attributes=[], update_zone=False)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/dns/host_record.py", line 149, in __init__
    univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes=attributes)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 244, in __init__
    self._validate_superordinate()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1000, in _validate_superordinate
    raise univention.admin.uexceptions.insufficientInformation(_('No superordinate object given'))
insufficientInformation: No superordinate object given

→ We should add simple error handling, the cause is probably that the superordinate is already removed.
Comment 1 Florian Best univentionstaff 2019-08-08 14:18:33 CEST
*** Bug 49355 has been marked as a duplicate of this bug. ***
Comment 2 Florian Best univentionstaff 2019-08-08 14:18:56 CEST
(In reply to Florian Best from comment #1)
> *** Bug 49355 has been marked as a duplicate of this bug. ***

Caused by ucs-test case 66__udm-computers/02_all_roles_creation_with_all_attributes.
Comment 3 Christian Völker univentionstaff 2020-07-29 13:47:45 CEST
Happening on customer:
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 1015, in _validate_superordinate
    raise univention.admin.uexceptions.insufficientInformation(_('No superordinate object given'))
insufficientInformation: No superordinate object given
Comment 6 Florian Best univentionstaff 2020-10-08 21:36:47 CEST
Reproducible also with the following commands:

udm dns/forward_zone create --set zone=example2.com --set nameserver=localhost
Object created: zoneName=example2.com,l=school,l=dev
sleep 10
samba-tool dns add -U Administrator%univention localhost example2.com x A 10.200.27.44

→ Traceback
(Pdb) newRecord.position.getDn()
'zoneName=example2.com,cn=dns,l=school,l=dev'
                       ^^^^^^^
The DN mapping is broken in this case.