Bug 47383

Summary: Installed 4.1 docker apps are deregistered during update (univention-app register)
Product: UCS Reporter: Erik Damrose <damrose>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: botner, gulden, stoeckigt, wiesenthal
Version: UCS 4.3   
Target Milestone: UCS 4.3-1-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.429 Enterprise Customer affected?:
School Customer affected?: Yes ISV affected?: Yes
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: 2018072321000265 Bug group (optional):
Max CVSS v3 score:

Description Erik Damrose univentionstaff 2018-07-20 10:58:27 CEST
To reproduce: UCS 4.3-0e0, install owncloud=10.0.8-20180604. Then, switch to the test app center and login to UMC, so app registration gets started. Probably calling univention-app register should be enough, too. 

Result: The owncloud app is not installed, according to the app center, while the container is still running.

When testing and debugging apps and app updates, this blocks ISVs.
@Nico: Did you reproduce it with an up to date UCS 4.3-1?
Comment 1 Nico Gulden univentionstaff 2018-07-20 11:00:33 CEST
I used the UCS 4.3-1 virtual box appliance, downloaded this week.
Comment 2 Felix Botner univentionstaff 2018-07-26 15:37:59 CEST
Happened in a customer environment and is reproducible

UCS 4.2-4 + 4.1/horde=5.2.7-3

=> update to latest

During the update to 4.3-1 univention-appcenter (package from 4.3-0-errata) calls univention-app register --app and de-registers horde
Comment 3 Felix Botner univentionstaff 2018-07-26 15:39:55 CEST
even shorter 

UCS 4.3-1 install a 4.1 (docker) app, e.g 4.1/owncloud=10.0.4-20180315, then run univention-app register --app and the app is gone.
Comment 4 Dirk Wiesenthal univentionstaff 2018-07-26 17:07:35 CEST
Fixed in
  univention-appcenter 7.0.2-12A~4.3.0.201807261705

Using get_all_apps now correctly considers the installation status of older app versions.
Comment 5 Felix Botner univentionstaff 2018-07-26 17:28:20 CEST
OK - univentiona-app register/UMC with old apps
OK - yaml
Comment 6 Arvid Requate univentionstaff 2018-07-26 17:50:50 CEST
<http://errata.software-univention.de/ucs/4.3/157.html>
Comment 7 Felix Botner univentionstaff 2018-07-27 11:50:53 CEST
Added a ucs-test for this 

ucs-test f28fb41b283bcdc492715a75c30f44c2a8bbcffd

@Dirk, can you have a look?