Bug 34559 - update-python-modules breaks register UDM extensions
update-python-modules breaks register UDM extensions
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: LDAP
UCS 3.2
All Linux
: P5 critical (vote)
: UCS 3.2-0-errata
Assigned To: Arvid Requate
Stefan Gohmann
:
Depends on: 32405 34421
Blocks: 34349 35929
  Show dependency treegraph
 
Reported: 2014-04-15 19:32 CEST by Stefan Gohmann
Modified: 2014-09-15 12:33 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): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2014-04-15 19:32:40 CEST
Should be backported to 3.2-0

+++ This bug was initially created as a clone of Bug #34421 +++

+++ This bug was initially created as a clone of Bug #32405 +++
...
* It updates the Python links e.g. by calling update-python-modules -p

I don't know what called "update-python-modules -a -v -f" (maybe a package update, maybe a Python update, maybe a package removal), but doing this manually removed all UDM extensions:

# find syntax.d hooks.d handlers -iname \*ox\* | wc -l
24
# update-python-modules -a -v -f
...
# cd $PWD
# find syntax.d hooks.d handlers -iname \*ox\*

It looks like "update-python-modules" starts from scratch and removed the complete directory before creating it anew; because of that the "cd $PWD" is needed.
It only processes those modules listed in /usr/share/python-support/*.{public,private}.

# udm modules | grep ox

# cd /usr/share/pyshared/univention/admin
# find hooks.d syntax.d handlers -path \*ox\* -type f -exec bash -c 't=/usr/lib/pymodules/python2.6/univention/admin/$1;mkdir -p ${t%/*};ln -n -s $PWD/$1 $t;pycompile $t' -- {} \;
# udm modules | grep ox
  oxmail/oxcontext
  oxmail/oxdomain
  oxmail/oxfetchmailmulti
  oxmail/oxfetchmailsingle
  oxmail/oxfolder
  oxmail/oxlists
  oxmail/oxmail
  oxresources/oxresources
Comment 1 Arvid Requate univentionstaff 2014-04-15 20:50:22 CEST
Patches backported to errata3.2-0
Advisory: 2014-03-25-univention-directory-manager-modules.yaml
Comment 2 Stefan Gohmann univentionstaff 2014-04-16 07:16:17 CEST
Code: OK

Tests: OK

YAML: OK
Comment 3 Moritz Muehlenhoff univentionstaff 2014-04-16 16:11:03 CEST
http://errata.univention.de/ucs/3.2/89.html