Bug 26210 - S4 Connector Traceback wegen CN=RID Set beim Löschen von DC's
S4 Connector Traceback wegen CN=RID Set beim Löschen von DC's
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-1-errata
Assigned To: Stefan Gohmann
Arvid Requate
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-22 10:59 CET by Arvid Requate
Modified: 2012-11-09 16:45 CET (History)
3 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 Arvid Requate univentionstaff 2012-02-22 10:59:32 CET
Nach Übernahme des "S4 Connector" Service durch backup2master ist folgender traceback im connector-s4.log:

13.02.2012 21:35:55,896 LDAP        (PROCESS): sync from ucs: [            dc] [    delete] cn=master,ou=domain controllers,dc=ucs3s4x2,dc=qa
13.02.2012 21:35:55,924 LDAP        (WARNING): delete subobject: CN=RID Set,CN=MASTER,OU=Domain Controllers,DC=ucs3s4x2,DC=qa
13.02.2012 21:35:55,929 LDAP        (WARNING): sync failed, saved as rejected
13.02.2012 21:35:55,929 LDAP        (WARNING): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 747, in __sync_file_from_ucs
    or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old))):
  File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 2176, in sync_from_ucs
    self.delete_in_s4( object )
  File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 2212, in delete_in_s4
    if not self.sync_from_ucs(key, subobject, object_mapping['dn']):
  File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 1976, in sync_from_ucs
    if self.property[property_type].sync_mode in ['read', 'none']:
KeyError: None
Comment 1 Tobias Scherer univentionstaff 2012-03-13 09:59:09 CET
Auch aufgetreten an Ticket#: 2012030721003211  nachdem ein DC Slave über die UMC gelöscht wurde:

12.03.2012 10:55:01,800 LDAP        (PROCESS): sync from ucs:   Resync rejected file: /var/lib/univention-connector/s4/1331545175.833725
12.03.2012 10:55:01,803 LDAP        (PROCESS): sync from ucs: [            dc] [    delete] cn=host,ou=domain controllers,dc=foo,dc=bar,dc=de
12.03.2012 10:55:02,55 LDAP        (WARNING): delete subobject: CN=RID Set,CN=HOST,OU=Domain Controllers,DC=foo,DC=bar,DC=de
12.03.2012 10:55:02,60 LDAP        (WARNING): sync failed, saved as rejected
12.03.2012 10:55:02,60 LDAP        (WARNING): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 747, in __sync_file_from_ucs
    or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old))):
  File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 2174, in sync_from_ucs
    self.delete_in_s4( object )
  File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 2210, in delete_in_s4
    if not self.sync_from_ucs(key, subobject, object_mapping['dn']):
  File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 1974, in sync_from_ucs
    if self.property[property_type].sync_mode in ['read', 'none']:
KeyError: None
Comment 2 Janis Meybohm univentionstaff 2012-03-14 16:02:04 CET
Erneut aufgetreten an 2012031421001951

DC wurde in der UMC (UCS 3.0-1 errata37) entfernt.
Comment 3 Stefan Gohmann univentionstaff 2012-03-28 09:42:15 CEST
Problem ist, dass es kein Mapping für die RID Sets gibt. Der Connector löscht aber nur Objekte, für die er ein Mapping hat.
Comment 4 Stefan Gohmann univentionstaff 2012-03-28 15:53:45 CEST
Ist behoben.

Es kann jetzt im Mapping eine Liste von Objekten angegeben werden, die mit gelöscht werden soll, wenn das zu löschende Objekt nicht leer ist: con_subtree_delete_objects
Comment 5 Arvid Requate univentionstaff 2012-03-28 17:24:58 CEST
Verified:
 * Anpassung ist in Paketversion 6.0.121-1 für ucs3.0-2 gebaut.

 * Anpassung ist als 14_bug_26210.patch extrahiert und wurde beim Bau des Pakets in errata3.0-1 gegen die Version 6.0.111-1 aus ucs3.0-1 angewendet.

 * Samba 4 DC mit CN="RID Set" Subelement wird gelöscht wenn der DC im UDM gelöscht wird.

 * Die Warn-Meldung im connector-s4.log durch Versuch den Ursprungsort des gelöschten SD-Objekts für Rücksync nach LDAP zu finden ist ok. Samba4 schreibt da einfach kein lastKnownParent Attribut an das gelöschte Objekt, warum auch immer.

28.03.2012 03:06:39,892 LDAP        (WARNING): lastKnownParent attribute for deleted object rdn="CN=RID Set" was not set, so we must ignore the object

 * Installation des Pakets auf Basis von ucs3.0-1 OK
 * Advisory OK
Comment 6 Janek Walkenhorst univentionstaff 2012-11-09 16:45:29 CET
http://errata.univention.de/errata46.html