Bug 1988886
| Summary: | cannot build fedora-toolbox:35+ in Koji OSBS | ||
|---|---|---|---|
| Product: | [Fedora] Fedora Container Images | Reporter: | Jens Petersen <petersen> |
| Component: | fedora-toolbox | Assignee: | Debarshi Ray <debarshir> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 35 | CC: | debarshir, dustymabe, fedoraproject, harrymichal, ogutierr, petersen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-09-22 15:37:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jens Petersen
2021-08-02 01:42:59 UTC
I've tried to reproduce and what I get is this: [oliver@t480s fedora-toolbox]$ buildah bud . STEP 1: FROM registry.fedoraproject.org/fedora:35 STEP 2: ENV NAME=fedora-toolbox VERSION=35 STEP 3: LABEL com.github.containers.toolbox="true" com.github.debarshiray.toolbox="true" com.redhat.component="$NAME" name="$NAME" version="$VERSION" usage="This image is meant to be used with the toolbox command" summary="Base image for creating Fedora toolbox containers" maintainer="Debarshi Ray <rishi>" STEP 4: COPY README.md / STEP 5: RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf STEP 6: COPY missing-docs / STEP 7: RUN dnf -y reinstall $(<missing-docs) Fedora rawhide openh264 (From Cisco) - x86_64 0.0 B/s | 0 B 00:00 Errors during downloading metadata for repository 'fedora-cisco-openh264': - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-rawhide&arch=x86_64 [getaddrinfo() thread failed to start] Error: Failed to download metadata for repo 'fedora-cisco-openh264': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-rawhide&arch=x86_64 [getaddrinfo() thread failed to start] Fedora - Rawhide - Developmental packages for t 0.0 B/s | 0 B 00:00 Errors during downloading metadata for repository 'rawhide': - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [getaddrinfo() thread failed to start] Error: Failed to download metadata for repo 'rawhide': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [getaddrinfo() thread failed to start] error building at STEP "RUN dnf -y reinstall $(<missing-docs)": error while running runtime: exit status 1 ERRO[0002] exit status 1 Seems like I've an error trying to connect to internet and download the repositories package metadata. I checked this again locally and got it working. Then I tried to do the same in koji and I got the same error. The problem seems to be in resolving the names for the repositories to download the packages. 2021-08-04 08:12:52,296 - atomic_reactor.util - DEBUG - Step 8/17 : RUN dnf -y reinstall $(<missing-docs) 2021-08-04 08:12:52,469 - atomic_reactor.util - DEBUG - ---> Running in d94c32f0959f 2021-08-04 08:12:52,470 - atomic_reactor.util - DEBUG - [91m[0m 2021-08-04 08:12:53,034 - atomic_reactor.util - DEBUG - Fedora rawhide openh264 (From Cisco) - x86_64 0.0 B/s | 0 B 00:00 2021-08-04 08:12:53,034 - atomic_reactor.util - DEBUG - [91mErrors during downloading metadata for repository 'fedora-cisco-openh264': 2021-08-04 08:12:53,034 - atomic_reactor.util - DEBUG - - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-rawhide&arch=x86_64 [getaddrinfo() thread failed to start] 2021-08-04 08:12:53,034 - atomic_reactor.util - DEBUG - [0m 2021-08-04 08:12:53,034 - atomic_reactor.util - DEBUG - [91mError: Failed to download metadata for repo 'fedora-cisco-openh264': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-rawhide&arch=x86_64 [getaddrinfo() thread failed to start] 2021-08-04 08:12:53,034 - atomic_reactor.util - DEBUG - [0m 2021-08-04 08:12:53,039 - atomic_reactor.util - DEBUG - Fedora - Rawhide - Developmental packages for t 0.0 B/s | 0 B 00:00 2021-08-04 08:12:53,039 - atomic_reactor.util - DEBUG - [91mErrors during downloading metadata for repository 'rawhide': 2021-08-04 08:12:53,039 - atomic_reactor.util - DEBUG - - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [getaddrinfo() thread failed to start] 2021-08-04 08:12:53,039 - atomic_reactor.util - DEBUG - - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64&countme=1 [getaddrinfo() thread failed to start] 2021-08-04 08:12:53,039 - atomic_reactor.util - DEBUG - [0m 2021-08-04 08:12:53,045 - atomic_reactor.util - DEBUG - [91mError: Failed to download metadata for repo 'rawhide': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [getaddrinfo() thread failed to start] 2021-08-04 08:12:53,045 - atomic_reactor.util - DEBUG - [0m 2021-08-04 08:12:53,281 - atomic_reactor.util - DEBUG - Removing intermediate container d94c32f0959f 2021-08-04 08:12:53,282 - atomic_reactor.util - ERROR - {'errorDetail': {'code': 1, 'message': "The command '/bin/sh -c dnf -y reinstall $(<missing-docs)' returned a non-zero code: 1"}, 'error': "The command '/bin/sh -c dnf -y reinstall $(<missing-docs)' returned a non-zero code: 1"} Build link: https://koji.fedoraproject.org/koji/taskinfo?taskID=73255639 Also I opened an issue in fedora infrastructure: https://pagure.io/fedora-infrastructure/issue/10145 This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle. Changing version to 35. I am not sure if those repo errors are fatal or not - though I agree they don't look good. The final backtrace error says: 2021-08-12 03:46:16,072 - atomic_reactor.inner - ERROR - image build failed: The command '/bin/sh -c dnf -y reinstall $(<missing-docs)' returned a non-zero code: 1 Traceback (most recent call last): : which is why I think it is the dropped packages listed in missing-docs that is causing the failure. This is from an f35 build today: https://koji.fedoraproject.org/koji/taskinfo?taskID=73702291 This happened before and removing the relevant packages them from missing-docs fixed it as I recall. Why it only causes the build to fail in koji buildContainer, I don't know. Sorry, I think you are right and I am wrong. It tried on the new f35 branch and it still fails even after removing the 3 dropped packages from missing-docs. So I think we need help from the Fedora containers people on how to fix the repos issue we are seeing. Okay I found https://pagure.io/fedora-infrastructure/issue/10145 For users coming here, I think the best current workaround is to roll your own toolbox image locally for now. I have a script you can try, to help with that: https://github.com/toolbox-images/toolbox-images/blob/main/images/fedora/make-toolbox.sh Thanks Jens for the workaround. Let's see if Fedora infra gets fixed soon. This problem was already resolved by fedora infra and should be closed. |