Bug 24211 - Traceback InsufficientInformation beim Umbenennen des DC Master
Traceback InsufficientInformation beim Umbenennen des DC Master
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Computers
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0 - RC
Assigned To: Stefan Gohmann
Janek Walkenhorst
:
Depends on:
Blocks: 23993
  Show dependency treegraph
 
Reported: 2011-10-26 15:34 CEST by Janek Walkenhorst
Modified: 2011-12-13 15:49 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
udm-cli-debug.log (16.47 KB, text/plain)
2011-10-26 16:22 CEST, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janek Walkenhorst univentionstaff 2011-10-26 15:34:27 CEST
Der Befehl
 univention-directory-manager computers/$server_role modify --binddn "$binddn" --bindpwd "$bindpwd" --dn "$ldap_hostdn" --set name=$new_hostname
aus univention-system-setup/usr/lib/univention-system-setup/scripts/basis/10hostname
erzeugt folgenden Traceback:

Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 233, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 938, in doit
    dn=object.modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 332, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 824, in _modify
    self._ldap_post_modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/computers/domaincontroller_master.py", line 573, in _ldap_post_modify
    univention.admin.handlers.simpleComputer._ldap_post_modify( self )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1734, in _ldap_post_modify
    self.__rename_dns_object( position = None, old_name = self.__changes[ 'name' ][ 0 ], new_name = self.__changes[ 'name' ][ 1 ] )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1266, in __rename_dns_object
    object = univention.admin.objects.get( univention.admin.modules.get( 'dns/host_record' ), self.co, self.lo, position = self.position, dn = result )
  File "/usr/lib/pymodules/python2.6/univention/admin/objects.py", line 75, in get
    return module.object( co, lo, position, dn, superordinate = superordinate )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/dns/host_record.py", line 156, in __init__
    raise univention.admin.uexceptions.insufficientInformation, _( 'superordinate object not present' )
insufficientInformation: Ein übergeordnetes Objekt ist nicht vorhanden
Comment 1 Janek Walkenhorst univentionstaff 2011-10-26 16:13:03 CEST
# udm computers/domaincontroller_master list

DN: cn=rechna,cn=dc,cn=computers,dc=foo,dc=bar
ARG: None
  domain: foo.bar
  nagiosContactEmail: None
  ip: 10.200.12.230
  ip: 2001:db8::230
  nagiosServices: cn=UNIVENTION_PING,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_DISK_ROOT,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_DNS,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_LDAP,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_NTP,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_SMTP,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_SSL,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_REPLICATION,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_NSCD,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_KPASSWDD,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_JOINSTATUS,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_SWAP,cn=nagios,dc=foo,dc=bar
  nagiosServices: cn=UNIVENTION_LOAD,cn=nagios,dc=foo,dc=bar
  network: None
  service: LDAP
  service: DHCP
  service: DNS
  service: Software Monitor
  service: NFS
  service: Samba 3
  service: Samba 4
  reinstalloption: None
  unixhome: /dev/null
  dnsEntryZoneForward: zoneName=foo.bar,cn=dns,dc=foo,dc=bar 10.200.12.230
  dnsEntryZoneForward: zoneName=foo.bar,cn=dns,dc=foo,dc=bar 2001:db8::1234
  instprofile: None
  dnsEntryZoneAlias: foo.bar zoneName=foo.bar,cn=dns,dc=foo,dc=bar 06c99d41-9e8e-44bf-b25f-5b12d31892d8._msdcs
  shell: /bin/sh
  description: None
  inventoryNumber: None
  mac: None
  reinstalltext: None
  groups: cn=DC Backup Hosts,cn=groups,dc=foo,dc=bar
  primaryGroup: cn=DC Backup Hosts,cn=groups,dc=foo,dc=bar
  password: {crypt}$1$q0pTCx5Z$/CQUEJH/X8.ExCYgxD9yo.
  reinstall: None
  serverRole: master
  dnsAlias: 06c99d41-9e8e-44bf-b25f-5b12d31892d8._msdcs
  dnsAlias: 06c99d41-9e8e-44bf-b25f-5b12d31892d8._msdcs
  name: rechna
  fqdn: rechna.foo.bar
  dnsEntryZoneReverse: None
  dnsEntryZoneReverse: None
Comment 2 Stefan Gohmann univentionstaff 2011-10-26 16:22:19 CEST
Created attachment 3688 [details]
udm-cli-debug.log

Die Debug Ausgabe von diesem Befehl:
root@rechna:~# udm computers/domaincontroller_master modify --dn cn=rechna,cn=dc,cn=computers,dc=foo,dc=bar --set name=rechnb
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 233, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 938, in doit
    dn=object.modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 344, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 865, in _modify
    self._ldap_post_modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/computers/domaincontroller_master.py", line 566, in _ldap_post_modify
    univention.admin.handlers.simpleComputer._ldap_post_modify( self )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1868, in _ldap_post_modify
    self.__rename_dns_object( position = None, old_name = self.__changes[ 'name' ][ 0 ], new_name = self.__changes[ 'name' ][ 1 ] )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 1330, in __rename_dns_object
    object = univention.admin.objects.get( univention.admin.modules.get( 'dns/host_record' ), self.co, self.lo, position = self.position, dn = result )
  File "/usr/lib/pymodules/python2.6/univention/admin/objects.py", line 75, in get
    return module.object( co, lo, position, dn, superordinate = superordinate )
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/dns/host_record.py", line 154, in __init__
    raise univention.admin.uexceptions.insufficientInformation, _( 'superordinate object not present' )
insufficientInformation: superordinate object not present
Comment 3 Stefan Gohmann univentionstaff 2011-10-29 23:21:23 CEST
fixed

Da gab es einige falsche Search Filter und Typos. Die Fehler wurden  in der 3.0 Entwicklung eingebaut, deshalb gibt es keinen Changelog.
Comment 4 Janek Walkenhorst univentionstaff 2011-11-29 10:47:19 CET
(In reply to comment #3)
> fixed
> 
> Da gab es einige falsche Search Filter und Typos. Die Fehler wurden  in der 3.0
> Entwicklung eingebaut, deshalb gibt es keinen Changelog.
Änderungen sehen gut aus.
Rechner-Umbenennen funktioniert.
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2011-12-13 15:49:04 CET
UCS 3.0-0 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer
neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert
werden: "Clone This Bug"