Bug 24774 - Profil als Drop-Down im LDAP anzeigen
Profil als Drop-Down im LDAP anzeigen
Product: UCS
Classification: Unclassified
Component: Virtualization - UVMM
UCS 2.3
Other Linux
: P5 enhancement (vote)
: UCS 3.2
Assigned To: Philipp Hahn
Florian Best
: interim-1
Depends on: 24558
  Show dependency treegraph
Reported: 2011-11-21 21:36 CET by Stefan Gohmann
Modified: 2013-11-19 06:43 CET (History)
4 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 after Product Owner Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2011-11-21 21:36:13 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.
Comment 1 Philipp Hahn univentionstaff 2013-07-23 15:28:27 CEST
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
Comment 2 Florian Best univentionstaff 2013-07-26 09:16:27 CEST
The changes causes Bug #32084
Comment 3 Philipp Hahn univentionstaff 2013-07-26 13:22:45 CEST
(In reply to Florian Best from comment #2)
> The changes causes Bug #32084

svn42813: Removed explicit key='dn', which fixes this issue for me.

Comment 4 Philipp Hahn univentionstaff 2013-07-26 13:59:35 CEST
Waiting for Bug #32084 getting fixed.
Comment 5 Philipp Hahn univentionstaff 2013-07-26 21:04:02 CEST
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.
Comment 6 Philipp Hahn univentionstaff 2013-07-26 21:04:47 CEST
Comment 7 Florian Best univentionstaff 2013-08-19 11:12:33 CEST
Fix: OK
Changelog: OK (slightly adapted)
Comment 8 Stefan Gohmann univentionstaff 2013-10-31 15:49:21 CET
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>
  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>
AttributeError: 'module' object has no attribute 'UvmmProfiles'

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

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

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
Comment 9 Stefan Gohmann univentionstaff 2013-10-31 15:57:44 CET
(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.
Comment 10 Florian Best univentionstaff 2013-11-01 12:43:38 CET
(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.
Comment 11 Stefan Gohmann univentionstaff 2013-11-19 06:43:33 CET
UCS 3.2 has been released:

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