Bug 2047185 - tzdata package contents are missing in quay.io/centos/centos:stream9 image
Summary: tzdata package contents are missing in quay.io/centos/centos:stream9 image
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: tzdata
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Patsy Griffin
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-27 11:08 UTC by Marcin Sobczyk
Modified: 2023-07-18 14:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-14 20:58:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-109997 0 None None None 2022-01-27 11:46:30 UTC

Description Marcin Sobczyk 2022-01-27 11:08:33 UTC
Description of problem:

Even though package 'tzdata' is reported as installed in quay.io/centos/centos:stream9 image, its contents are missing.

Version-Release number of selected component (if applicable):

Latest centos:stream9 image from quay is affected.

How reproducible:

Always

Steps to Reproduce:

podman run --rm -it quay.io/centos/centos:stream9
rpm -ql tzdata
...
/usr/share/zoneinfo/Africa
...

ls -l /usr/share/zoneinfo
ls: cannot access '/usr/share/zoneinfo': No such file or directory

Actual results:

'/usr/share/zoneinfo' directory doesn't exist.

Expected results:

'/usr/share/zoneinfo' directory and its contents do exist.

Comment 2 Carlos O'Donell 2022-02-14 20:58:37 UTC
This is not a tzdata issue, but a container issue, and I agree it is confusing.

As part of the technical strategy for creating CentOS Stream 9 base containers, and actually many of the other containers, there are extra steps taken to reduce the size of deployed container. The commands we run are not always what we would like, but it serves a specific purpose e.g. improve security through the removal of a feature that does not yet have package-level granularity, or reduce the size of the uncompressed image.

Removing the zoneinfo files is exactly one of those extra steps that minimizes the unpacked size of the CentOS Stream 9 base container. This is actually not what we want to do, but is an intermediate step towards full tzdata removal. As part of an ongoing project we are looking at allowing the complete removal tzdata, and once that work is complete there won't be a tzdata in the container and you'll be able to layer on top of that if you need more than just UTC for logging.

I'm marking this issue as CLOSED/NOTABUG for now since the container is operating as expected, but I want you to know that we are actively working to improve this.

The relevant Fedora change that needs to happen first is here:

"Bug 1722233 - tzdata: Allow complete removal of tzdata."
https://bugzilla.redhat.com/show_bug.cgi?id=1722233


Note You need to log in before you can comment on or make changes to this bug.