Bug 27144 - univentionObjectType anpassen
univentionObjectType anpassen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: backup2master
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Jürgen Kahrs
Janek Walkenhorst
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-16 10:14 CEST by Andreas Büsching
Modified: 2012-07-20 15:24 CEST (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

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Büsching univentionstaff 2012-05-16 10:14:16 CEST
Im Skript wird bereits die ServerRole angepasst. Dies sollte auch für das Attribut univentionObjectType durchgeführt werden.
Comment 1 Jürgen Kahrs univentionstaff 2012-05-22 12:10:28 CEST
Ich habe das script backup2master so geändert, dass es für den neuen master univentionObjectType auf computers/domaincontroller_master setzt.

Nach dem Test war im LDAP sowohl univentionServerRole als auch univentionObjectType korrekt gesetzt.

dn: cn=ucs30-64-backup-bug-5774,cn=dc,cn=computers,dc=jkahrs,dc=dev
univentionServerRole: master
univentionObjectType: computers/domaincontroller_master

Ich habe diese Änderung im changelog eingetragen.
Comment 2 Andreas Büsching univentionstaff 2012-06-22 16:13:09 CEST
Bei dem Code wird davon ausgegangen, dass univentionObjectType existiert. 

mir ist nicht ganz klar, ob wir davon ausgehen können oder nicht.

Zur Klärung des Sachverhalts noch einmal wieder auf.
Comment 3 Jürgen Kahrs univentionstaff 2012-06-25 10:41:56 CEST
Der code zur Änderung (mit ldapmodify) sieht so aus und setzt tatsächlich den Typ master:

  replace: univentionObjectType
  univentionObjectType: computers/domaincontroller_master

Die Variable univentionObjectType wurde zurück portiert auf UCS 2.4 und existiert dort also. Kunden mit UCS 2.4 machen erst den update auf 2.4.4, bevor sie auf 3.0 gehen. Damit haben sie also auf jeden Fall eine Version, bei der univentionObjectType existiert und geändert werden kann.
Comment 4 Andreas Büsching univentionstaff 2012-06-25 14:14:14 CEST
Ich habe dazu gerade noch mal mit Stefan gesprochen, da mein Einwand anders gemeint war :-)

Es ging mir darum, dass es sein kann, dass zwar die Objektklasse sowie das Attribut definiert sind (Schema vorhanden), aber einfach nicht an dem Rechnerobjekt gesetzt sind. In dem Fall muss zusätzlich die Objektklasse hinzugefügt werden.

Es sollen jetzt beide Fälle implementiert werden.
Comment 5 Andreas Büsching univentionstaff 2012-06-26 10:59:52 CEST
Es wäre gut wenn im Zuge dieses Bugs in der Hilfe zu dem Script noch die Revision-Angabe entfernt würden könnte.


Revision    : $Id: univention-backup2master 33324 2012-05-30 06:19:42Z jkahrs $
Comment 6 Jürgen Kahrs univentionstaff 2012-06-26 13:16:12 CEST
Das script backup2master habe ich so ergänzt, dass es erst prüft, ob objectClass univentionObject im LDAP vorhanden ist. Falls nicht, wird es hinzugefügt mit ldapmodify:

  dn: ${ldap_hostdn}
  changetype: modify
  add: objectClass
  objectClass: univentionObject
  -
  add: univentionObjectType
  univentionObjectType: computers/domaincontroller_master

Getestet habe ich es mit einem frischen backup
  - backup auf seinen master joinen
  - ldapmodify gegen den alten master, um univentionObject abzuschalten
  - alten master abschalten
  - auf dem backup das script backup2master ausführen
  - reboot des neuen master und prüfen, ob univentionObjectType vorhanden
Comment 7 Stefan Gohmann univentionstaff 2012-07-05 13:49:12 CEST
QA sollte nach der Umsetzung von Bug #5774 erfolgen.
Comment 8 Janek Walkenhorst univentionstaff 2012-07-12 17:40:11 CEST
(In reply to comment #5)
> Es wäre gut wenn im Zuge dieses Bugs in der Hilfe zu dem Script noch die
> Revision-Angabe entfernt würden könnte.
Entfernt.

Test mit vorhandenem Object-Type: OK
Comment 9 Janek Walkenhorst univentionstaff 2012-07-12 18:06:15 CEST
Test ohne ObjectType am Master: OK
Test ohne ObjectType am Backup: OK

Changelog OK
Comment 10 Stefan Gohmann univentionstaff 2012-07-20 15:24:27 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

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