Bug 47373 - Horde upgrade to 5.2.17-2 with wrong timezone definition
Horde upgrade to 5.2.17-2 with wrong timezone definition
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.3
amd64 Linux
: P5 normal (vote)
: UCS 4.3-1-errata
Assigned To: Felix Botner
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-18 15:09 CEST by Jörn Lentes
Modified: 2018-08-22 14:26 CEST (History)
3 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?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.343
Enterprise Customer affected?:
School Customer affected?: Yes
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 Jörn Lentes 2018-07-18 15:09:35 CEST
When upgrading Horde to version 5.2.17-2 a new Univention Docker image is used (docker.software-univention.de/ucs-appbox-amd64:4.3-0)

The upgrade was not successful. I had to uninstall and install again.

Find description here: https://help.univention.com/t/horde-calender-times-screwed-after-upgrade-reinstall/9264/4

/usr/share/zoneinfo/UTC is a soft link to /usr/share/zoneinfo/Europe/Berlin instead of being a separate file.

When replacing the link with the file from the UCS Master it works just fine.
Comment 1 Stefanie Schneider univentionstaff 2018-07-19 11:16:19 CEST
There is a school customer affected. Replacing the /usr/share/zoneinfo/UTC file like mentioned in the link above worked here.
Comment 2 Felix Botner univentionstaff 2018-07-19 14:43:23 CEST
Problem is:

in appbox 4.3 (debian stretch in general) /etc/localtime is a link (and no longer a file as in previous debian versions).

-> docker run --rm docker.software-univention.de/ucs-appbox-amd64:4.3-0 ls -la /etc/localtime
lrwxrwxrwx 1 root root 27 Feb 13 00:00 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC

The same is true for UCS itself.

-> ls -la  /etc/localtime 
lrwxrwxrwx 1 root root 33 Mai 18 10:43 /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin

And during the app installation we copy /etc/localtime from the host into the container. Prior to 4.3 this copied a file into the container. But now with debian/stretch we copy a link into the destination of /etc/localtime in the container


host:      /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin
container: /etc/localtime -> /usr/share/zoneinfo/Etc/UTC 
container: /usr/share/zoneinfo/Etc/UTC -> ../UTC
host       -> docker cp /etc/localtime id:/etc/localtime
container: /usr/share/zoneinfo/UTC -> /usr/share/zoneinfo/Europe/Berlin

This seems wrong, we should remove the /etc/localtime link in the container first.

host:      /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin
container: -> rm /etc/localtime
host:      -> docker cp /etc/localtime id:/etc/localtime
container  /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin
container: -> dpkg-reconfigure -f noninteractive tzdata
Current default time zone: 'Europe/Berlin'
Local time is now:      Thu Jul 19 14:43:17 CEST 2018.
Universal Time is now:  Thu Jul 19 12:43:17 UTC 2018.
Comment 3 Felix Botner univentionstaff 2018-07-19 15:24:27 CEST
fixed by removing /etc/localtime (and /etc/timezone) in the container before copying

univention-appcenter: 837dc14abc753eec6872991624082e8e37031e55
yaml: c5cbb5041b1448c27c4c04fd9f338b8905c4f77d
Comment 4 Dirk Wiesenthal univentionstaff 2018-07-28 16:06:45 CEST
Changeset: OK
YAML: OK

@Felix: Please set the SupportedUCSVersions of Horde accordingly as soon as this erratum has been released.
Comment 5 Arvid Requate univentionstaff 2018-08-22 14:26:23 CEST
<http://errata.software-univention.de/ucs/4.3/211.html>