Bug 47763 - Regression: Readonly docker container App installation fails
Regression: Readonly docker container App installation fails
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.3
amd64 Linux
: P5 normal (vote)
: UCS 4.3-2-errata
Assigned To: Felix Botner
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-09-07 10:59 CEST by Erik Damrose
Modified: 2018-09-26 13:24 CEST (History)
2 users (show)

See Also:
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?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.143
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 Erik Damrose univentionstaff 2018-09-07 10:59:17 CEST
837dc14a in Bug #47373 introduced the removal of container files /etc/timezone and /etc/localtime:

appcenter-docker/actions/docker_base.py
docker.execute('rm', '/etc/timezone', '/etc/localtime')

This causes the app installation to fail when the docker container is used in read-only mode. Installation via UMC just fails. Using univention-app, the installation waits for confirmation from stdin, because the file cannot be removed:

...
rm: can't remove '/etc/timezone': No such file or directory
rm: remove '/etc/localtime'? 
Calling ['docker', 'cp', '/etc/timezone', 'fa35cd91d563a24b45940e7b40bc0414197d7206c3ea353bfbd085942a67266f:/etc/timezone']
...

rm: remove '/etc/localtime'?  waits for confirmation before continuing the installation.

Maybe using rm -f fixes the issue.

+++ This bug was initially created as a clone of Bug #47373 +++
Comment 1 Felix Botner univentionstaff 2018-09-12 16:54:55 CEST
univention-appcenter: f953e91706b9aaaff5a4bcee1766f85c8314a75a
yaml: 891374c8a7e1a9db324203638aeecbe68353b513
Comment 2 Dirk Wiesenthal univentionstaff 2018-09-20 17:12:38 CEST
Ok, works
Comment 3 Erik Damrose univentionstaff 2018-09-26 13:24:45 CEST
<http://errata.software-univention.de/ucs/4.3/249.html>