Bug 28889 - Traceback bei Sync to UCS: (reverse ) DNS Zones die nur in S4 angelegt wurden
Traceback bei Sync to UCS: (reverse ) DNS Zones die nur in S4 angelegt wurden
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Arvid Requate
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-23 16:59 CEST by Arvid Requate
Modified: 2012-12-12 21:08 CET (History)
1 user (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
create_dnsZone_in_s4.py (1.75 KB, text/plain)
2012-11-12 18:04 CET, Arvid Requate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2012-10-23 16:59:09 CEST
Wenn der S4 Connector versucht (reverse) DNS Zones in UCS anzulegen, die nur in S4 angelegt wurden, dann gibt es einen Traceback/reject.

Ursachen:
 * Tippfehler im dns S4 Connector Modul verhindert das überhaupt DNS Zones in UCS angelegt werden.
 * Syntaxfehler bei Übergabe der SOA-Zeitwerte an das UDM-Objekt.
 * Key-Fehler beim Setzen des Namens der reverse Zone (heißt dort "subnet").
Comment 1 Arvid Requate univentionstaff 2012-10-23 17:00:43 CEST
Ist angepasst.
Comment 2 Stefan Gohmann univentionstaff 2012-11-12 15:32:45 CET
Es scheint aber noch nicht zu funktionieren:

root@master301:~# cat 203.ldif 
dn: DC=203.10.in-addr.arpa,CN=MicrosoftDNS,CN=System,DC=deadlock30,DC=local
objectClass: top
objectClass: dnsZone
showInAdvancedViewOnly: TRUE
name: 203.10.in-addr.arpa
dc: 203.10.in-addr.arpa
root@master301:~# cat 203.ldif | ldbadd -H /var/lib/samba/private/sam.ldb
Added 1 records successfully
root@master301:~# udm dns/reverse_zone list | grep ^DN
DN: zoneName=201.10.in-addr.arpa,cn=dns,dc=deadlock30,dc=local
root@master301:~#

Logdatei:

12.11.2012 14:07:18,646 LDAP        (INFO   ): _ignore_object: Do not ignore DC=203.10.in-addr.arpa,cn=dns,dc=deadlock30,dc=local
12.11.2012 14:07:18,647 LDAP        (INFO   ): get_ucs_object: object not found: DC=203.10.in-addr.arpa,cn=dns,dc=deadlock30,dc=local
12.11.2012 14:07:18,647 LDAP        (PROCESS): sync to ucs:   [           dns] [       add] DC=203.10.in-addr.arpa,cn=dns,dc=deadlock30,dc=local
12.11.2012 14:07:18,648 LDAP        (INFO   ): sync_to_ucs: set position to cn=dns,dc=deadlock30,dc=local
12.11.2012 14:07:18,648 LDAP        (INFO   ): dns con2ucs: Object (DC=203.10.in-addr.arpa,cn=dns,dc=deadlock30,dc=local): {'dn': u'DC=203.10.in-addr.arpa,cn=dns,dc=deadlock30,dc=local', 'attributes': {'distinguishedName': [u'DC=203.10.in-addr.arpa,CN=MicrosoftDNS,CN=System,DC=deadlock30,DC=local'], 'name': [u'203.10.in-addr.arpa'], 'objectCategory': [u'CN=Dns-Zone,CN=Schema,CN=Configuration,DC=deadlock30,DC=local'], 'objectClass': [u'top', u'dnsZone'], 'objectGUID': [u'W1\x15p}\x1f\x03K\x86\xb8\xa5\xb1j\x03\xe8m'], 'dc': [u'203.10.in-addr.arpa'], 'whenChanged': [u'20121112130716.0Z'], 'whenCreated': [u'20121112130716.0Z'], 'uSNChanged': [u'17907'], 'uSNCreated': [u'17907'], 'showInAdvancedViewOnly': [u'TRUE'], 'instanceType': [u'4']}, 'modtype': 'add'}
12.11.2012 14:07:18,649 LDAP        (INFO   ): dns con2ucs: Object (DC=203.10.in-addr.arpa,cn=dns,dc=deadlock30,dc=local) is from type reverse_zone
12.11.2012 14:07:18,649 LDAP        (INFO   ): Return  result for DN (DC=203.10.in-addr.arpa,cn=dns,dc=deadlock30,dc=local)
12.11.2012 14:07:18,695 LDAP        (INFO   ): _set_lastUSN: new lastUSN is: 17907
Comment 3 Arvid Requate univentionstaff 2012-11-12 18:04:56 CET
Created attachment 4783 [details]
create_dnsZone_in_s4.py

Der S4 Connector benötigt das DC='@' Objekt.
Comment 4 Stefan Gohmann univentionstaff 2012-11-13 06:45:40 CET
(In reply to comment #3)
> Der S4 Connector benötigt das DC='@' Objekt.

Ja, stimmt. Ich habe eine Reverse Zone von einem anderen System kopiert, diese wird wie gewünscht angelegt.

Changelog OK

Damit diese Dinge zukünftig automatisiert getestet werden: Bug #29211.
Comment 5 Stefan Gohmann univentionstaff 2012-12-12 21:08:30 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

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