Last active
September 3, 2021 08:58
-
-
Save raukadah/96a57cddb6ffd2129e3568c4414a4b6b to your computer and use it in GitHub Desktop.
tzdata zoneinfo missing from centos stream 9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[chandankumar@fedora tcib]$ podman images | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
trunk.registry.rdoproject.org/tripleomastercentos9/openstack-nova-api a8b72470998eaa3e1039457bf1eb53f2 adc60f51fe25 51 minutes ago 1 GB | |
trunk.registry.rdoproject.org/tripleomastercentos9/openstack-cinder-volume 14ba5932ccde964e82a6100f108fa62e 2be113500294 21 hours ago 961 MB | |
trunk.registry.rdoproject.org/tripleomastercentos9/openstack-haproxy eec16ab614f9b19a00a463a1f55e8d22 ab42054bdb66 46 hours ago 475 MB | |
quay.io/centos/centos stream9-development dbdacea25e43 3 days ago 157 MB | |
[chandankumar@fedora tcib]$ podman run -it dbdacea25e43 bash | |
[root@439dc1138f0d /]# rpm -qa | grep tzdata | |
tzdata-2021a-3.el9.noarch | |
[root@439dc1138f0d /]# cat /etc/redhat-release | |
CentOS Stream release 9 | |
[root@439dc1138f0d /]# cd /usr/share/ | |
X11/ bash-completion/ file/ glib-2.0/ info/ man/ pki/ themes/ | |
aclocal/ centos-release/ fontconfig/ gnome/ libgpg-error/ metainfo/ publicsuffix/ wayland-sessions/ | |
appdata/ crypto-policies/ fonts/ gnupg/ libreport/ mime-info/ python-wheels/ xsessions/ | |
applications/ desktop-directories/ games/ help/ licenses/ misc/ redhat-release/ zsh/ | |
augeas/ dict/ gawk/ i18n/ locale/ omf/ sounds/ | |
awk/ doc/ gcc-11/ icons/ lua/ p11-kit/ tabset/ | |
backgrounds/ empty/ gdb/ idl/ magic pixmaps/ terminfo/ | |
[root@439dc1138f0d /]# cd /usr/share/ | |
[root@439dc1138f0d share]# ls | |
X11 augeas centos-release doc fonts gdb help info locale metainfo p11-kit python-wheels terminfo zsh | |
aclocal awk crypto-policies empty games glib-2.0 i18n libgpg-error lua mime-info pixmaps redhat-release themes | |
appdata backgrounds desktop-directories file gawk gnome icons libreport magic misc pki sounds wayland-sessions | |
applications bash-completion dict fontconfig gcc-11 gnupg idl licenses man omf publicsuffix tabset xsessions | |
[root@439dc1138f0d share]# ls | grep zone | |
[root@439dc1138f0d share]# | |
######################################### | |
LOOK INTO RPM ITSELF https://kojihub.stream.centos.org/kojifiles/packages/tzdata/2021a/3.el9/noarch/tzdata-2021a-3.el9.noarch.rpm | |
[chandankumar@fedora tmp]$ wget https://kojihub.stream.centos.org/kojifiles/packages/tzdata/2021a/3.el9/noarch/tzdata-2021a-3.el9.noarch.rpm | |
--2021-09-03 14:04:09-- https://kojihub.stream.centos.org/kojifiles/packages/tzdata/2021a/3.el9/noarch/tzdata-2021a-3.el9.noarch.rpm | |
Resolving kojihub.stream.centos.org (kojihub.stream.centos.org)... 66.187.232.100 | |
Connecting to kojihub.stream.centos.org (kojihub.stream.centos.org)|66.187.232.100|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 439639 (429K) [application/x-rpm] | |
Saving to: ‘tzdata-2021a-3.el9.noarch.rpm’ | |
tzdata-2021a-3.el9.noarch.rpm 100%[=========================================================================================>] 429.33K 355KB/s in 1.2s | |
2021-09-03 14:04:12 (355 KB/s) - ‘tzdata-2021a-3.el9.noarch.rpm’ saved [439639/439639] | |
[chandankumar@fedora tmp]$ rpmls tzdata-2021a-3.el9.noarch.rpm | grep zoneinfo | |
drwxr-xr-x /usr/share/zoneinfo | |
drwxr-xr-x /usr/share/zoneinfo/Africa | |
-rw-r--r-- /usr/share/zoneinfo/Africa/Abidjan | |
-rw-r--r-- /usr/share/zoneinfo/Africa/Accra | |
-rw-r--r-- /usr/share/zoneinfo/Africa/Addis_Ababa | |
-rw-r--r-- /usr/share/zoneinfo/Africa/Algiers | |
-rw-r--r-- /usr/share/zoneinfo/Africa/Asmara | |
-rw-r--r-- /usr/share/zoneinfo/Africa/Asmera | |
-rw-r--r-- /usr/share/zoneinfo/Africa/Bamako | |
-rw-r--r-- /usr/share/zoneinfo/Africa/Bangui | |
So something is removing in the base image itself. | |
[root@439dc1138f0d ~]# rpm -e --nodeps tzdata-2021a-3.el9.noarch | |
error: package tzdata-2021a-3.el9.noarch is not installed | |
[root@439dc1138f0d ~]# rpm -qa | grep tzdata | |
[root@439dc1138f0d ~]# dnf install https://kojihub.stream.centos.org/kojifiles/packages/tzdata/2021a/3.el9/noarch/tzdata-2021a-3.el9.noarch.rpm | |
UNSIGNED CentOS Stream 9 BaseOS 225 kB/s | 936 kB 00:04 | |
UNSIGNED CentOS Stream 9 AppStream 861 kB/s | 5.5 MB 00:06 | |
tzdata-2021a-3.el9.noarch.rpm 53 kB/s | 429 kB 00:08 | |
Dependencies resolved. | |
============================================================================================================================================================================== | |
Package Architecture Version Repository Size | |
============================================================================================================================================================================== | |
Installing: | |
tzdata noarch 2021a-3.el9 @commandline 429 k | |
Transaction Summary | |
============================================================================================================================================================================== | |
Install 1 Package | |
Total size: 429 k | |
Installed size: 1.7 M | |
Is this ok [y/N]: y | |
Downloading Packages: | |
Running transaction check | |
Transaction check succeeded. | |
Running transaction test | |
Transaction test succeeded. | |
Running transaction | |
Preparing : 1/1 | |
Installing : tzdata-2021a-3.el9.noarch 1/1 | |
Verifying : tzdata-2021a-3.el9.noarch 1/1 | |
Installed: | |
tzdata-2021a-3.el9.noarch | |
Complete! | |
[root@439dc1138f0d ~]# ls /usr/share/z | |
zoneinfo/ zsh/ | |
It appears that /usr/share/zoneinfo file got removed during container build. | |
Where it is wrong: | |
We can found container images for centos stream 9: https://gitlab.com/redhat/centos-stream/release-engineering/kickstarts | |
Issue is here: https://gitlab.com/redhat/centos-stream/release-engineering/kickstarts/-/blob/main/CentOS-Stream-9-container-base.ks#L49-50 | |
# if you want to change the timezone, bind-mount it from the host or reinstall tzdata | |
rm -fv /etc/localtime | |
mv /usr/share/zoneinfo/UTC /etc/localtime | |
rm -rfv /usr/share/zoneinfo | |
FIX: reinstall tzdata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment