Univention Bugzilla – Bug 24774
Profil als Drop-Down im LDAP anzeigen
Last modified: 2013-11-19 06:43:33 CET
Das Profil sollte als Drop-Down im LDAP angezeigt werden, derzeit steht dort einfach die DN als String. +++ This bug was initially created as a clone of Bug #24558 +++ Das Profil mit der einr virtuelle Maschine angelegt wurde sollte im LDAP am Objekt zu r Maschine gespeichert werden. Dadurch kann beim Bearbeiten einer Maschine besser entschieden werden mit welchen Parametern beispielsweise Laufwerke angelegt werden sollten.
svn42698 univention-virtual-machine-manager-schema_4.0.2-1.55.201307231527 ChangeLog: The syntax for the Profile DN in UVMM info LDAP objects has been changed to do an LDAP search and provide a drop-down list of available profiles
The changes causes Bug #32084
(In reply to Florian Best from comment #2) > The changes causes Bug #32084 svn42813: Removed explicit key='dn', which fixes this issue for me. univention-virtual-machine-manager-schema_4.0.2-2.56.201307261321
Waiting for Bug #32084 getting fixed.
svn42845: The UDM modules uvmm/info and uvmm/profile have been converted to use the optimized LDAP search functionality of UDM. Also added the virttech to the profile name, since the name of the profile itself is not unique (kvm vs. xen) svn42846: The profile allowed invalid memory and storage capacity values, which are now also validated.
univention-virtual-machine-manager-schema_4.0.2-3.57.201307262059
Fix: OK Changelog: OK (slightly adapted)
This breaks the UDM CLI from UCS 3.1 to UCS 3.2 during the upgrade: ------------------------------------------------------------------------------- root@master501:~# /usr/share/univention-directory-manager-tools/univention-cli-server Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 43, in <module> import univention.admincli.admin File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 52, in <module> univention.admin.modules.update() File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 92, in update os.path.walk(dir, _walk, p) File "/usr/lib/python2.6/posixpath.py", line 236, in walk walk(name, func, arg) File "/usr/lib/python2.6/posixpath.py", line 228, in walk func(arg, top, names) File "/usr/lib/pymodules/python2.6/univention/admin/modules.py", line 76, in _walk m=__import__(mod, globals(), locals(), name) File "/usr/lib/pymodules/python2.6/univention/admin/handlers/uvmm/info.py", line 97, in <module> syntax=udm_syntax.UvmmProfiles, AttributeError: 'module' object has no attribute 'UvmmProfiles' root@master501:~# ------------------------------------------------------------------------------- If the package is already unpacked but the postinst is not executed the syntax link does not exist: ------------------------------------------------------------------------------- root@master501:~# ls -al /usr/lib/pymodules/python2.6/univention/admin/syntax.d/ insgesamt 16 drwxr-xr-x 2 root root 4096 20. Aug 09:11 . drwxr-xr-x 4 root root 4096 20. Aug 09:38 .. lrwxrwxrwx 1 root root 56 20. Aug 09:11 example.py -> /usr/share/pyshared/univention/admin/syntax.d/example.py -rw-r--r-- 1 root root 651 27. Mär 12:24 example.pyc -rw-r--r-- 1 root root 0 27. Mär 12:24 __init__.py -rw-r--r-- 1 root root 153 27. Mär 12:24 __init__.pyc root@master501:~# dpkg -L python-univention-directory-manager-uvmm /. /usr /usr/share /usr/share/locale /usr/share/locale/de /usr/share/locale/de/LC_MESSAGES /usr/share/locale/de/LC_MESSAGES/univention-virtual-machine-manager-schema.mo /usr/share/pyshared /usr/share/pyshared/univention /usr/share/pyshared/univention/admin /usr/share/pyshared/univention/admin/syntax.d /usr/share/pyshared/univention/admin/syntax.d/univention-virtual-machine-manager-schema.py /usr/share/pyshared/univention/admin/handlers /usr/share/pyshared/univention/admin/handlers/uvmm /usr/share/pyshared/univention/admin/handlers/uvmm/profile.py /usr/share/pyshared/univention/admin/handlers/uvmm/info.py /usr/share/pyshared/univention/admin/handlers/uvmm/__init__.py /usr/share/doc /usr/share/doc/python-univention-directory-manager-uvmm /usr/share/doc/python-univention-directory-manager-uvmm/changelog.Debian.gz /usr/share/doc/python-univention-directory-manager-uvmm/copyright /usr/share/python-support /usr/share/python-support/python-univention-directory-manager-uvmm.public ------------------------------------------------------------------------------- But the link to the module already uses the new module: ------------------------------------------------------------------------------- root@master501:~# ls -la /usr/share/pyshared/univention/admin/handlers/uvmm/info.py -rw-r--r-- 1 root root 5568 26. Jul 20:48 /usr/share/pyshared/univention/admin/handlers/uvmm/info.py root@master501:~# ls -la /usr/lib/pymodules/python2.6/univention/admin/handlers/uvmm/info.py lrwxrwxrwx 1 root root 58 27. Mär 12:25 /usr/lib/pymodules/python2.6/univention/admin/handlers/uvmm/info.py -> /usr/share/pyshared/univention/admin/handlers/uvmm/info.py root@master501:~# ------------------------------------------------------------------------------- The following options come to my mind: - pre-Update of python-univention-direcory-manager-uvmm - move syntax defintions to the module - move syntax defintion to syntax.py
(In reply to Stefan Gohmann from comment #8) > - pre-Update of python-univention-direcory-manager-uvmm The package is now updated in preup.sh. No additional changelog entry needed.
(In reply to Stefan Gohmann from comment #9) > (In reply to Stefan Gohmann from comment #8) > > - pre-Update of python-univention-direcory-manager-uvmm > > The package is now updated in preup.sh. OK, works.
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".