Bug 42498

Summary: While upgrading Non-Docker to Docker Apps, unjoin scripts from the Non-Docker App are run last
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: walkenhorst
Version: UCS 4.1   
Target Milestone: UCS 4.1-3-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.154 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:

Description Dirk Wiesenthal univentionstaff 2016-09-26 01:09:47 CEST
If the new App version is Docker, the new lib is used. If the new lib is used, upgrade goes like this:

 Install new version (start docker container)
 Remove old version (apt packages)
 Done

Problem: apt packages may run their unjoin script in postinst. This script may break the App, at least it will probably uninstall the join script of the (now) current App version.
Comment 1 Dirk Wiesenthal univentionstaff 2016-09-26 01:59:04 CEST
In
  univention-appcenter 5.0.22-18.224.201609260147

the join script is run during the "install" and then re-run after the "uninstall". I did not remove the first run as just makes it more complicated. The remove routine for already installed unjoin scripts just before running join scripts has been improved. This way some unjoin scripts are never run.
Comment 2 Felix Botner univentionstaff 2016-09-27 18:23:17 CEST
OK - during upgrade docker the join script(s) are called 
OK - YAML
OK - merged to 4.2-0
Comment 3 Janek Walkenhorst univentionstaff 2016-09-28 14:05:50 CEST
<https://errata.software-univention.de/ucs/4.1/279.html>