Bug 42498 - While upgrading Non-Docker to Docker Apps, unjoin scripts from the Non-Docker App are run last
While upgrading Non-Docker to Docker Apps, unjoin scripts from the Non-Docker...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-3-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-26 01:09 CEST by Dirk Wiesenthal
Modified: 2016-09-28 14:05 CEST (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>