RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1668185 - rhel8-beta container contains broken tzdata package
Summary: rhel8-beta container contains broken tzdata package
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-base-container
Version: ---
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
: 1674495 1903219 (view as bug list)
Depends On:
Blocks: 1186913
TreeView+ depends on / blocked
 
Reported: 2019-01-22 07:05 UTC by Christian Horn
Modified: 2024-03-25 15:12 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-14 01:19:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5616681 0 None None None 2020-12-01 17:08:35 UTC

Internal Links: 1870814

Comment 5 Christian Horn 2019-01-25 00:33:56 UTC
Description of problem:
After fetching the rhel8 container image and running a shell inside, 'rpm -V' reports that tzdata package is broken. After reinstalling the package, 'rpm -V' reports no error, and processes ontop can use the files from tzdata (in my case '/usr/sbin/php-fpm --nodaemonize').

Version-Release number of selected component (if applicable):
rhel8-beta
Host running the nightly beta, the container-image fetched from registry.access.redhat.com/rhel8-beta .

How reproducible:
always

Steps to Reproduce:
1. setup the rhel8, KVM guest is enough
2. dnf install podman buildah
3. container=$(buildah from registry.access.redhat.com/rhel8-beta)
4. cat >beta.repo<<EOT
[rhel8]
name=rhel8
baseurl=http://<url>/BaseOS/x86_64/os/

[rhel8-AS]
name=rhel8-AS
baseurl=http://<url>/AppStream/x86_64/os/
EOT
5. buildah copy $container ./beta.repo /etc/yum.repos.d/beta.repo
6. buildah run $container -- /usr/bin/bash
7. (on the new shell) rpm -V tzdata

Actual results:
[...]
missing     /usr/share/zoneinfo/posix/America/Marigot
missing     /usr/share/zoneinfo/posix/America/Martinique
missing     /usr/share/zoneinfo/posix/America/Matamoros
missing     /usr/share/zoneinfo/posix/America/Mazatlan
missing     /usr/share/zoneinfo/posix/America/Mendoza
missing     /usr/share/zoneinfo/posix/America/Menominee
[...]

Expected results:
tzdata should be installed properly

Additional info:

- Manually removing tzdata and reinstalling works:
dnf download tzdata
rpm -e --nodeps tzdata
rpm -ivh tzdata

Excerpt from the comments (I might have misunderstood them):
- the rhel8 beta images are removing tzdata files intentionally
- because of https://bugzilla.redhat.com/show_bug.cgi?id=1051816
  That bz seems like it was fixed in 2015 though, I wonder why it
  would be current in rhel8 builds - rhel8 was forked from Fedora
  much later

Comment 10 Christian Horn 2019-02-04 05:51:22 UTC
Any chance to get this fixed for GA, so we can start with a container image where the RPM-db and tzdata contents on disk are matching?  If we do not, people will live with hacks around that (i.e. reinstalling tzdata as part of their setup procedure) for the whole rhel8 livetime.  This will cost time, cycles - and reputation.

Comment 16 Scott McCarty 2019-02-05 18:56:34 UTC
Carlos,
    Can you live with the hack in the rhel7-minimal (not much choice at this point, been out there forever) and rhel8-minimal (it would be a change in behavior. I can live with this one, because the minimal image is already hacky with microdnf having to specify all of the repos, etc) images? This is what I am proposing:

rhel7 - no hack
rhel7-minimal - leave hack
rhel8 - remove hack
rhel8-minimal - leave hack
rhel8-init - remove hack

Then, we start a concerted effort for RHEL9 to fix rhel-minimal (and the others) the right way.

Comment 17 Yaakov Selkowitz 2019-02-05 19:02:03 UTC
Like the rest of the layered images, all rhel8-init should need is to be rebuilt once rhel8:8.0-ondeck is fixed.

Comment 18 Carlos O'Donell 2019-02-05 19:32:52 UTC
(In reply to Scott McCarty from comment #16)
> Carlos,
>     Can you live with the hack in the rhel7-minimal (not much choice at this
> point, been out there forever) and rhel8-minimal (it would be a change in
> behavior. I can live with this one, because the minimal image is already
> hacky with microdnf having to specify all of the repos, etc) images? This is
> what I am proposing:

The minimal images are clearly for use by technical experts you are trying
to minimize the installed size and will thus likely see less questions and
cost from CEE.
 
> rhel7 - no hack
> rhel7-minimal - leave hack
> rhel8 - remove hack
> rhel8-minimal - leave hack
> rhel8-init - remove hack

This looks good to me, it covers rhel8 and rhel8-init which should not have
the hack.

> Then, we start a concerted effort for RHEL9 to fix rhel-minimal (and the
> others) the right way.

Agreed.

Comment 19 Carlos O'Donell 2019-02-05 19:34:13 UTC
(In reply to Carlos O'Donell from comment #18)
> (In reply to Scott McCarty from comment #16)
> > Carlos,
> >     Can you live with the hack in the rhel7-minimal (not much choice at this
> > point, been out there forever) and rhel8-minimal (it would be a change in
> > behavior. I can live with this one, because the minimal image is already
> > hacky with microdnf having to specify all of the repos, etc) images? This is
> > what I am proposing:
> 
> The minimal images are clearly for use by technical experts you are trying
> to minimize the installed size and will thus likely see less questions and
> cost from CEE.
>  
> > rhel7 - no hack
> > rhel7-minimal - leave hack
> > rhel8 - remove hack
> > rhel8-minimal - leave hack
> > rhel8-init - remove hack
> 
> This looks good to me, it covers rhel8 and rhel8-init which should not have
> the hack.
> 
> > Then, we start a concerted effort for RHEL9 to fix rhel-minimal (and the
> > others) the right way.
> 
> Agreed.

Patsy,

As tzdata owner are you OK with leaving the minimal images with stripped
tzdata? The full images will be fixed.

Comment 20 Patsy Griffin 2019-02-05 19:40:13 UTC
Yes, I'm OK with this.

Thanks!

Comment 22 Laurie Friedman 2019-02-05 23:41:33 UTC
Sushma - is this a change that RCM needs to make or does Frantisek need to make this change?

Comment 23 Josh Boyer 2019-02-06 13:33:51 UTC
(In reply to Laurie Friedman from comment #22)
> Sushma - is this a change that RCM needs to make or does Frantisek need to
> make this change?

Either can do it.  I would recommend Frantisek as the image owner.

Comment 24 Josh Boyer 2019-02-11 13:28:18 UTC
*** Bug 1674495 has been marked as a duplicate of this bug. ***

Comment 25 Jon Schlueter 2019-02-11 14:26:17 UTC
python3-pytz also impacted by this issue.

Comment 28 Jon Schlueter 2019-02-11 15:52:24 UTC
The better approach for this problem may be packaging of tzdata so that you have a minimal and a full one, and python3-pyzt and other packages that depend on zoneinfo being there can use that subpackage name and correctly get the contents they are wanting, but also allow for a smaller image where things not needed are not included.

Comment 34 Sushma 2019-10-25 13:46:06 UTC
(In reply to Laurie Friedman from comment #22)
> Sushma - is this a change that RCM needs to make or does Frantisek need to
> make this change?

Looks like Frantisek took care of it and the fix is VERIFIED by Dave Darrah in https://bugzilla.redhat.com/show_bug.cgi?id=1668185#c31

Comment 35 Robb Manes 2020-12-01 17:11:01 UTC
*** Bug 1903219 has been marked as a duplicate of this bug. ***


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