Bug 40074

Summary: App Center does not start when docker is not running
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: App CenterAssignee: Dirk Wiesenthal <wiesenthal>
Status: CLOSED FIXED QA Contact: Daniel Tröder <troeder>
Severity: normal    
Priority: P5 CC: gohmann, klaeser, walkenhorst
Version: UCS 4.1   
Target Milestone: UCS 4.1-0-errata   
Hardware: Other   
OS: Linux   
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):
Max CVSS v3 score:

Description Dirk Wiesenthal univentionstaff 2015-11-23 17:22:50 CET
The App Center checks whether docker is running. If not, it starts it. If this fails, the App Center refuses to work.

We should make this check configurable. If the docker state is not checked, Docker Apps should not be shown.

Proposed UCRV:
  appcenter/docker?enabled

Useful when the docker service just fails to start for whatever reason, but also in a Univention App (Docker), where the App Center is still part of UMC.
Comment 1 Dirk Wiesenthal univentionstaff 2015-11-30 23:38:56 CET
Fixed in
  univention-appcenter 5.0.19-18.77.201511302249

UCRV is appcenter/docker

If disabled, the startup check is skipped. Docker Apps can still be seen, but not installed. A button is presented to re-configure the App Center so that the Docker Apps can again be installed (=> appcenter/docker=enabled), but only if we manage to start the docker service
Comment 2 Daniel Tröder univentionstaff 2015-12-03 12:32:48 CET
OK: Code
OK: advisory
OK: Test:

# mv /usr/bin/docker /usr/bin/docker.off
# ucr set appcenter/docker=on

→ AppCenter reports "Der Docker-Dienst läuft nicht......."

# ucr set appcenter/docker=off

→ AppCenter starts properly, when trying to install a DockerApp, it reports "The application uses a container technology while the App Center is configured to not not support it......" and offers to enable "Docker Support".
→ That fails with the first message and leaves the UCR=off. It is thus possible to continue using the AppCenter.

# mv /usr/bin/docker.off /usr/bin/docker

→ AppCenter starts properly, when trying to install a DockerApp, it reports "The application uses a container technology while the App Center is configured to not not support it......" and offers to enable "Docker Support".
→ This time it succeeds, the UCR is changed, the App installation continues.
Comment 3 Daniel Tröder univentionstaff 2015-12-03 12:37:11 CET
(In reply to Daniel Tröder from comment #2)
> → This time it succeeds, the UCR is changed, the App installation continues.
It actually does not continue, but goes back to the App-page, where the app installation can once again be started and succeeds.
Comment 4 Janek Walkenhorst univentionstaff 2015-12-09 16:47:10 CET
<http://errata.software-univention.de/ucs/4.1/27.html>
Comment 5 Stefan Gohmann univentionstaff 2015-12-29 10:45:28 CET
*** Bug 40256 has been marked as a duplicate of this bug. ***