intel / intel-ethernet-operator

K8s operator for Intel E810 Series NICs FW/DDP updates and Flow configuration API
Other
21 stars 10 forks source link

tzdata rpm package download fails during image build #18

Closed dkasanic closed 11 months ago

dkasanic commented 11 months ago

When running make build_all, following error happens during build of intel-ethernet-operator-manager image:

[2/3] STEP 2/2: RUN mkdir -p /mnt/rootfs &&     yum install --installroot /mnt/rootfs coreutils-single glibc-minimal-langpack kmod         --releasever 9 --setopt install_weak_deps=false --nodocs -y &&     yum --installroot /mnt/rootfs clean all &&     rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.*
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.

This system is not registered with an entitlement server. You can use subscription-manager to register.

Red Hat Universal Base Image 9 (RPMs) - BaseOS  834 kB/s | 514 kB     00:00    
Red Hat Universal Base Image 9 (RPMs) - AppStre 900 kB/s | 1.8 MB     00:02    
Red Hat Universal Base Image 9 (RPMs) - CodeRea 150 kB/s | 190 kB     00:01    
Dependencies resolved.
========================================================================================
 Package                  Arch    Version                       Repository          Size
========================================================================================
Installing:
 coreutils-single         x86_64  8.32-34.el9                   ubi-9-baseos-rpms  626 k
 glibc-minimal-langpack   x86_64  2.34-83.el9_3.7               ubi-9-baseos-rpms   37 k
 kmod                     x86_64  28-9.el9                      ubi-9-baseos-rpms  130 k
Installing dependencies:
 alternatives             x86_64  1.24-1.el9                    ubi-9-baseos-rpms   42 k
 basesystem               noarch  11-13.el9                     ubi-9-baseos-rpms  8.0 k
 bash                     x86_64  5.1.8-6.el9_1                 ubi-9-baseos-rpms  1.7 M
 ca-certificates          noarch  2023.2.60_v7.0.306-90.1.el9_2 ubi-9-baseos-rpms  846 k
 crypto-policies          noarch  20230731-1.git94f0e2c.el9_3.1 ubi-9-baseos-rpms   87 k
 filesystem               x86_64  3.16-2.el9                    ubi-9-baseos-rpms  4.7 M
 glibc                    x86_64  2.34-83.el9_3.7               ubi-9-baseos-rpms  1.9 M
 glibc-common             x86_64  2.34-83.el9_3.7               ubi-9-baseos-rpms  321 k
 grep                     x86_64  3.6-5.el9                     ubi-9-baseos-rpms  273 k
 libacl                   x86_64  2.3.1-3.el9                   ubi-9-baseos-rpms   26 k
 libattr                  x86_64  2.5.1-3.el9                   ubi-9-baseos-rpms   20 k
 libcap                   x86_64  2.48-9.el9_2                  ubi-9-baseos-rpms   74 k
 libffi                   x86_64  3.4.2-8.el9                   ubi-9-baseos-rpms   40 k
 libgcc                   x86_64  11.4.1-2.1.el9                ubi-9-baseos-rpms   98 k
 libselinux               x86_64  3.5-1.el9                     ubi-9-baseos-rpms   88 k
 libsepol                 x86_64  3.5-1.el9                     ubi-9-baseos-rpms  317 k
 libsigsegv               x86_64  2.13-4.el9                    ubi-9-baseos-rpms   30 k
 libtasn1                 x86_64  4.16.0-8.el9_1                ubi-9-baseos-rpms   77 k
 libzstd                  x86_64  1.5.1-2.el9                   ubi-9-baseos-rpms  332 k
 ncurses-base             noarch  6.2-10.20210508.el9           ubi-9-baseos-rpms   99 k
 ncurses-libs             x86_64  6.2-10.20210508.el9           ubi-9-baseos-rpms  332 k
 openssl-libs             x86_64  1:3.0.7-24.el9                ubi-9-baseos-rpms  2.2 M
 p11-kit                  x86_64  0.24.1-2.el9                  ubi-9-baseos-rpms  387 k
 p11-kit-trust            x86_64  0.24.1-2.el9                  ubi-9-baseos-rpms  148 k
 pcre                     x86_64  8.44-3.el9.3                  ubi-9-baseos-rpms  202 k
 pcre2                    x86_64  10.40-2.el9                   ubi-9-baseos-rpms  239 k
 pcre2-syntax             noarch  10.40-2.el9                   ubi-9-baseos-rpms  147 k
 redhat-release           x86_64  9.3-0.5.el9                   ubi-9-baseos-rpms   44 k
 sed                      x86_64  4.8-9.el9                     ubi-9-baseos-rpms  309 k
 setup                    noarch  2.13.7-9.el9                  ubi-9-baseos-rpms  150 k
 tzdata                   noarch  2023c-1.el9                   ubi-9-baseos-rpms  845 k
 xz-libs                  x86_64  5.2.5-8.el9_0                 ubi-9-baseos-rpms   94 k
 zlib                     x86_64  1.2.11-40.el9                 ubi-9-baseos-rpms   93 k

Transaction Summary
========================================================================================
Install  36 Packages

Total download size: 17 M
Installed size: 36 M
Downloading Packages:
(1/36): basesystem-11-13.el9.noarch.rpm          89 kB/s | 8.0 kB     00:00    
(2/36): alternatives-1.24-1.el9.x86_64.rpm      395 kB/s |  42 kB     00:00    
(3/36): ca-certificates-2023.2.60_v7.0.306-90.1  17 MB/s | 846 kB     00:00    
(4/36): coreutils-single-8.32-34.el9.x86_64.rpm  17 MB/s | 626 kB     00:00    
(5/36): bash-5.1.8-6.el9_1.x86_64.rpm            12 MB/s | 1.7 MB     00:00    
(6/36): crypto-policies-20230731-1.git94f0e2c.e  12 MB/s |  87 kB     00:00    
(7/36): glibc-common-2.34-83.el9_3.7.x86_64.rpm  15 MB/s | 321 kB     00:00    
(8/36): glibc-minimal-langpack-2.34-83.el9_3.7. 3.6 MB/s |  37 kB     00:00    
(9/36): glibc-2.34-83.el9_3.7.x86_64.rpm         38 MB/s | 1.9 MB     00:00    
(10/36): grep-3.6-5.el9.x86_64.rpm               15 MB/s | 273 kB     00:00    
(11/36): libacl-2.3.1-3.el9.x86_64.rpm          2.6 MB/s |  26 kB     00:00    
(12/36): kmod-28-9.el9.x86_64.rpm                10 MB/s | 130 kB     00:00    
(13/36): libcap-2.48-9.el9_2.x86_64.rpm         5.5 MB/s |  74 kB     00:00    
(14/36): libattr-2.5.1-3.el9.x86_64.rpm         1.3 MB/s |  20 kB     00:00    
(15/36): libgcc-11.4.1-2.1.el9.x86_64.rpm        11 MB/s |  98 kB     00:00    
(16/36): libffi-3.4.2-8.el9.x86_64.rpm          4.1 MB/s |  40 kB     00:00    
(17/36): filesystem-3.16-2.el9.x86_64.rpm        47 MB/s | 4.7 MB     00:00    
(18/36): libselinux-3.5-1.el9.x86_64.rpm        6.9 MB/s |  88 kB     00:00    
(19/36): libsepol-3.5-1.el9.x86_64.rpm           22 MB/s | 317 kB     00:00    
(20/36): libsigsegv-2.13-4.el9.x86_64.rpm       4.0 MB/s |  30 kB     00:00    
(21/36): libtasn1-4.16.0-8.el9_1.x86_64.rpm     8.3 MB/s |  77 kB     00:00    
(22/36): libzstd-1.5.1-2.el9.x86_64.rpm          24 MB/s | 332 kB     00:00    
(23/36): ncurses-base-6.2-10.20210508.el9.noarc 8.5 MB/s |  99 kB     00:00    
(24/36): ncurses-libs-6.2-10.20210508.el9.x86_6  25 MB/s | 332 kB     00:00    
(25/36): p11-kit-trust-0.24.1-2.el9.x86_64.rpm  8.9 MB/s | 148 kB     00:00    
(26/36): p11-kit-0.24.1-2.el9.x86_64.rpm         15 MB/s | 387 kB     00:00    
(27/36): pcre-8.44-3.el9.3.x86_64.rpm            18 MB/s | 202 kB     00:00    
(28/36): pcre2-10.40-2.el9.x86_64.rpm            20 MB/s | 239 kB     00:00    
(29/36): pcre2-syntax-10.40-2.el9.noarch.rpm     13 MB/s | 147 kB     00:00    
(30/36): openssl-libs-3.0.7-24.el9.x86_64.rpm    44 MB/s | 2.2 MB     00:00    
(31/36): redhat-release-9.3-0.5.el9.x86_64.rpm  4.0 MB/s |  44 kB     00:00    
(32/36): sed-4.8-9.el9.x86_64.rpm                29 MB/s | 309 kB     00:00    
[MIRROR] tzdata-2023c-1.el9.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 864432, repository metadata states file length: 864888 (please report to repository maintainer)
(33/36): setup-2.13.7-9.el9.noarch.rpm           13 MB/s | 150 kB     00:00    
(34/36): zlib-1.2.11-40.el9.x86_64.rpm           12 MB/s |  93 kB     00:00    
(35/36): xz-libs-5.2.5-8.el9_0.x86_64.rpm       2.1 MB/s |  94 kB     00:00    
[MIRROR] tzdata-2023c-1.el9.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 864432, repository metadata states file length: 864888 (please report to repository maintainer)
[MIRROR] tzdata-2023c-1.el9.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 864432, repository metadata states file length: 864888 (please report to repository maintainer)
[MIRROR] tzdata-2023c-1.el9.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 864432, repository metadata states file length: 864888 (please report to repository maintainer)
[FAILED] tzdata-2023c-1.el9.noarch.rpm: No more mirrors to try - All mirrors were already tried without success

The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
[3/3] STEP 1/9: FROM registry.access.redhat.com/ubi9/ubi-micro:9.2-5

STDERR:

Resolving "golang" using unqualified-search registries (/etc/containers/registries.conf)
Trying to pull docker.io/library/golang:alpine3.18...
Getting image source signatures
Copying blob sha256:8ebe3be3b56eef1186e8ed89cfaaacf25685600944b44bcdbbd57eb8c8d188e4
Copying blob sha256:834bccaa730c985b202b64916ba9cbab707b8a165cece04b8aea3801d6a75741
Copying blob sha256:96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6fa
Copying blob sha256:6bde6e5b785726fea08cb0fb123a90298ceca5cbdc7f267aec8af550c401a2f6
Copying blob sha256:8ebe3be3b56eef1186e8ed89cfaaacf25685600944b44bcdbbd57eb8c8d188e4
Copying blob sha256:6bde6e5b785726fea08cb0fb123a90298ceca5cbdc7f267aec8af550c401a2f6
Copying blob sha256:96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6fa
Copying blob sha256:834bccaa730c985b202b64916ba9cbab707b8a165cece04b8aea3801d6a75741
Copying config sha256:bb520cee46ae8e555212e4abad0c1ea977f638cb100fd643522c560d818afac1
Writing manifest to image destination
Storing signatures
Trying to pull registry.access.redhat.com/ubi9/ubi:9.2-489...
Getting image source signatures
Copying blob sha256:33b9f09cff46d8b03b1185767b94e3881ea4cb8a671dd16ca1403f599fb2ed8f
Copying blob sha256:33b9f09cff46d8b03b1185767b94e3881ea4cb8a671dd16ca1403f599fb2ed8f
Copying config sha256:e7236a3e070f267713ad79c451b8628166abc0bc9c855f624619e099ec3faa99
Writing manifest to image destination
Storing signatures
Error: Error downloading packages:
  tzdata-2023c-1.el9.noarch: Cannot download, all mirrors were already tried without success
Trying to pull registry.access.redhat.com/ubi9/ubi-micro:9.2-5...
Error: error building at STEP "RUN mkdir -p /mnt/rootfs &&     yum install --installroot /mnt/rootfs coreutils-single glibc-minimal-langpack kmod         --releasever 9 --setopt install_weak_deps=false --nodocs -y &&     yum --installroot /mnt/rootfs clean all &&     rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.*": error while running runtime: exit status 1
gmake: *** [Makefile:236: docker-build-manager] Error 125

MSG:

Resolving "golang" using unqualified-search registries (/etc/containers/registries.conf)
Trying to pull docker.io/library/golang:alpine3.18...
Getting image source signatures
Copying blob sha256:8ebe3be3b56eef1186e8ed89cfaaacf25685600944b44bcdbbd57eb8c8d188e4
Copying blob sha256:834bccaa730c985b202b64916ba9cbab707b8a165cece04b8aea3801d6a75741
Copying blob sha256:96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6fa
Copying blob sha256:6bde6e5b785726fea08cb0fb123a90298ceca5cbdc7f267aec8af550c401a2f6
Copying blob sha256:8ebe3be3b56eef1186e8ed89cfaaacf25685600944b44bcdbbd57eb8c8d188e4
Copying blob sha256:6bde6e5b785726fea08cb0fb123a90298ceca5cbdc7f267aec8af550c401a2f6
Copying blob sha256:96526aa774ef0126ad0fe9e9a95764c5fc37f409ab9e97021e7b4775d82bf6fa
Copying blob sha256:834bccaa730c985b202b64916ba9cbab707b8a165cece04b8aea3801d6a75741
Copying config sha256:bb520cee46ae8e555212e4abad0c1ea977f638cb100fd643522c560d818afac1
Writing manifest to image destination
Storing signatures
Trying to pull registry.access.redhat.com/ubi9/ubi:9.2-489...
Getting image source signatures
Copying blob sha256:33b9f09cff46d8b03b1185767b94e3881ea4cb8a671dd16ca1403f599fb2ed8f
Copying blob sha256:33b9f09cff46d8b03b1185767b94e3881ea4cb8a671dd16ca1403f599fb2ed8f
Copying config sha256:e7236a3e070f267713ad79c451b8628166abc0bc9c855f624619e099ec3faa99
Writing manifest to image destination
Storing signatures
Error: Error downloading packages:
  tzdata-2023c-1.el9.noarch: Cannot download, all mirrors were already tried without success
Trying to pull registry.access.redhat.com/ubi9/ubi-micro:9.2-5...
Error: error building at STEP "RUN mkdir -p /mnt/rootfs &&     yum install --installroot /mnt/rootfs coreutils-single glibc-minimal-langpack kmod         --releasever 9 --setopt install_weak_deps=false --nodocs -y &&     yum --installroot /mnt/rootfs clean all &&     rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.*": error while running runtime: exit status 1
gmake: *** [Makefile:236: docker-build-manager] Error 125
rafal-lal commented 11 months ago

Mirror error that appeared during installation of dependencies from package manager. Issue was on base container image provider side and was fixed within 1 day.