Bug 44562 - Add option to univention-app to renew an existing App container
Add option to univention-app to renew an existing App container
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-09 12:29 CEST by Michael Grandjean
Modified: 2021-07-28 09:12 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
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?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021072721000233
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 Michael Grandjean univentionstaff 2017-05-09 12:29:53 CEST
As pointed out in Bug #44561, environment variables are only passed to a docker container when the container is created. It's not possible to change them afterwards (https://github.com/moby/moby/issues/8838#issuecomment-285789380).
When ENV variables need to be changed (e.g. because the proxy changed), the only possibilities to get them updated inside a docker container are:
a) wait for an App upgrade
b) remove and re-install the App

Removing the App also removes data and drops databases. We should have a simple to use option in univention-app that discards the current container and deploys it again - with the new ENV variables but without deleting data.
Comment 1 Florian Best univentionstaff 2017-06-28 14:53:07 CEST
There is a Customer ID set so I set the flag "Enterprise Customer affected".
Comment 2 Ingo Steuwer univentionstaff 2020-07-03 20:56:19 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 3 Christina Scheinig univentionstaff 2021-07-27 15:51:29 CEST
Still relevant, especially good for debugging
Comment 4 Dirk Wiesenthal univentionstaff 2021-07-28 01:40:54 CEST
(In reply to Christina Scheinig from comment #3)
> Still relevant, especially good for debugging

Have you tried
univention-app reinitialize $app

Only works for certain Apps (namely those without a setup script)
Comment 5 Christina Scheinig univentionstaff 2021-07-28 09:12:07 CEST
(In reply to Dirk Wiesenthal from comment #4)
> (In reply to Christina Scheinig from comment #3)
> > Still relevant, especially good for debugging
> 
> Have you tried
> univention-app reinitialize $app
> 
> Only works for certain Apps (namely those without a setup script)

Yes, i tried this (worked), but afaik is this nearly the same as remove and re-install the App, which I would not like to do, for debugging e.g. proxy.