Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run ov build #4931

Closed
d3jawu opened this issue Sep 15, 2024 · 2 comments · Fixed by #4932
Closed

Unable to run ov build #4931

d3jawu opened this issue Sep 15, 2024 · 2 comments · Fixed by #4932
Labels
💻 aspect: code Concerns the software code in the repository 🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: mgmt Related to repo management and automations

Comments

@d3jawu
Copy link
Contributor

d3jawu commented Sep 15, 2024

Description

When running ov build on the latest version of the main branch, I run into the following error:

 => CACHED [1/2] FROM docker.io/library/fedora:40@sha256:b7b4b222c2a433e831c006a49a3970096  0.0s
 => ERROR [2/2] RUN mkdir /pipx   && dnf -y install dnf-plugins-core   && dnf -y config-m  28.3s
------                                                                                           
 > [2/2] RUN mkdir /pipx   && dnf -y install dnf-plugins-core   && dnf -y config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo   && dnf -y install https://dl.k6.io/rpm/repo.rpm   && dnf -y install     git     g++     just     jq     which     xdg-utils     nodejs npm     python3.12 python3.12-devel pipx     libffi-devel     docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin     unzip     postgresql postgresql-devel     k6 words   && dnf clean all   && pipx install --global     httpie     pdm pipenv      pgcli     pre-commit   && npm install -g     n     corepack   && corepack enable:
6.971 Fedora 40 - aarch64                             2.8 MB/s |  19 MB     00:06    
10.21 Fedora 40 openh264 (From Cisco) - aarch64       818  B/s | 1.4 kB     00:01    
16.11 Fedora 40 - aarch64 - Updates                   1.7 MB/s | 9.6 MB     00:05    
17.92 Dependencies resolved.
17.93 ================================================================================
17.93  Package                     Arch       Version                Repository  Size
17.93 ================================================================================
17.93 Installing:
17.93  dnf-plugins-core            noarch     4.9.0-1.fc40           updates     41 k
17.93 Installing dependencies:
17.93  dbus-libs                   aarch64    1:1.14.10-3.fc40       fedora     156 k
17.93  python3-dateutil            noarch     1:2.8.2-13.fc40        fedora     356 k
17.93  python3-dbus                aarch64    1.3.2-6.fc40           fedora     157 k
17.93  python3-distro              noarch     1.9.0-3.fc40           fedora      50 k
17.93  python3-dnf-plugins-core    noarch     4.9.0-1.fc40           updates    321 k
17.93  python3-six                 noarch     1.16.0-14.fc40         fedora      41 k
17.93  python3-systemd             aarch64    235-9.fc40             fedora     107 k
17.93  systemd-libs                aarch64    255.12-1.fc40          updates    693 k
17.93 
17.93 Transaction Summary
17.93 ================================================================================
17.93 Install  9 Packages
17.93 
17.93 Total download size: 1.9 M
17.93 Installed size: 7.2 M
17.93 Downloading Packages:
20.37 (1/9): dbus-libs-1.14.10-3.fc40.aarch64.rpm     135 kB/s | 156 kB     00:01    
20.44 (2/9): python3-dbus-1.3.2-6.fc40.aarch64.rpm    128 kB/s | 157 kB     00:01    
20.53 (3/9): python3-dateutil-2.8.2-13.fc40.noarch.rp 271 kB/s | 356 kB     00:01    
20.54 (4/9): python3-distro-1.9.0-3.fc40.noarch.rpm   288 kB/s |  50 kB     00:00    
20.71 (5/9): python3-six-1.16.0-14.fc40.noarch.rpm    151 kB/s |  41 kB     00:00    
20.76 (6/9): python3-systemd-235-9.fc40.aarch64.rpm   457 kB/s | 107 kB     00:00    
21.21 (7/9): dnf-plugins-core-4.9.0-1.fc40.noarch.rpm  62 kB/s |  41 kB     00:00    
21.82 (8/9): python3-dnf-plugins-core-4.9.0-1.fc40.no 290 kB/s | 321 kB     00:01    
23.54 (9/9): systemd-libs-255.12-1.fc40.aarch64.rpm   249 kB/s | 693 kB     00:02    
23.55 --------------------------------------------------------------------------------
23.55 Total                                           342 kB/s | 1.9 MB     00:05     
23.62 Running transaction check
23.63 Transaction check succeeded.
23.63 Running transaction test
23.65 Transaction test succeeded.
23.65 Running transaction
23.69   Preparing        :                                                        1/1 
23.71   Installing       : systemd-libs-255.12-1.fc40.aarch64                     1/9 
23.72   Installing       : dbus-libs-1:1.14.10-3.fc40.aarch64                     2/9 
23.72   Installing       : python3-dbus-1.3.2-6.fc40.aarch64                      3/9 
23.72   Installing       : python3-systemd-235-9.fc40.aarch64                     4/9 
23.73   Installing       : python3-six-1.16.0-14.fc40.noarch                      5/9 
23.73   Installing       : python3-dateutil-1:2.8.2-13.fc40.noarch                6/9 
23.73   Installing       : python3-distro-1.9.0-3.fc40.noarch                     7/9 
23.74   Installing       : python3-dnf-plugins-core-4.9.0-1.fc40.noarch           8/9 
23.74   Installing       : dnf-plugins-core-4.9.0-1.fc40.noarch                   9/9 
23.75   Running scriptlet: dnf-plugins-core-4.9.0-1.fc40.noarch                   9/9 
23.84 
23.84 Installed:
23.84   dbus-libs-1:1.14.10-3.fc40.aarch64                                            
23.84   dnf-plugins-core-4.9.0-1.fc40.noarch                                          
23.84   python3-dateutil-1:2.8.2-13.fc40.noarch                                       
23.84   python3-dbus-1.3.2-6.fc40.aarch64                                             
23.84   python3-distro-1.9.0-3.fc40.noarch                                            
23.84   python3-dnf-plugins-core-4.9.0-1.fc40.noarch                                  
23.84   python3-six-1.16.0-14.fc40.noarch                                             
23.84   python3-systemd-235-9.fc40.aarch64                                            
23.84   systemd-libs-255.12-1.fc40.aarch64                                            
23.84 
23.84 Complete!
23.94 Adding repo from: https://download.docker.com/linux/fedora/docker-ce.repo
25.38 Docker CE Stable - aarch64                       21 kB/s |  10 kB     00:00    
26.17 repo.rpm                                         40 kB/s |  10 kB     00:00    
26.32 Dependencies resolved.
26.33 ================================================================================
26.33  Package         Architecture    Version            Repository             Size
26.33 ================================================================================
26.33 Installing:
26.33  k6-rpm          noarch          0.0.2-1            @commandline           10 k
26.33 
26.33 Transaction Summary
26.33 ================================================================================
26.33 Install  1 Package
26.33 
26.33 Total size: 10 k
26.33 Installed size: 5.5 k
26.33 Downloading Packages:
26.33 Running transaction check
26.33 Transaction check succeeded.
26.33 Running transaction test
26.33 Transaction test succeeded.
26.33 Running transaction
26.34   Preparing        :                                                        1/1 
26.34   Installing       : k6-rpm-0.0.2-1.noarch                                  1/1 
26.40 
26.40 Installed:
26.40   k6-rpm-0.0.2-1.noarch                                                         
26.40 
26.40 Complete!
28.15 k6                                              190  B/s | 275  B     00:01    
28.15 Errors during downloading metadata for repository 'k6':
28.15   - Status code: 403 for https://dl.k6.io/rpm/aarch64/repodata/repomd.xml (IP: 18.172.170.14)
28.15 Error: Failed to download metadata for repo 'k6': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
28.15 Ignoring repositories: k6
28.15 Last metadata expiration check: 0:00:02 ago on Sun Sep 15 19:12:08 2024.
28.26 Package python3-3.12.2-2.fc40.aarch64 is already installed.
28.28 No match for argument: k6
28.29 Error: Unable to find a match: k6
------
Dockerfile:51
--------------------
  50 |     # - corepack: Node.js package-manager-manager
  51 | >>> RUN mkdir /pipx \
  52 | >>>   && dnf -y install dnf-plugins-core \
  53 | >>>   && dnf -y config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
  54 | >>>   && dnf -y install https://dl.k6.io/rpm/repo.rpm \
  55 | >>>   && dnf -y install \
  56 | >>>     git \
  57 | >>>     g++ \
  58 | >>>     just \
  59 | >>>     jq \
  60 | >>>     which \
  61 | >>>     xdg-utils \
  62 | >>>     nodejs npm \
  63 | >>>     python3.12 python3.12-devel pipx \
  64 | >>>     libffi-devel \
  65 | >>>     docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \
  66 | >>>     unzip \
  67 | >>>     postgresql postgresql-devel \
  68 | >>>     k6 words \
  69 | >>>   && dnf clean all \
  70 | >>>   && pipx install --global \
  71 | >>>     httpie \
  72 | >>>     pdm pipenv  \
  73 | >>>     pgcli \
  74 | >>>     pre-commit \
  75 | >>>   && npm install -g \
  76 | >>>     n \
  77 | >>>     corepack \
  78 | >>>   && corepack enable
  79 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir /pipx   && dnf -y install dnf-plugins-core   && dnf -y config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo   && dnf -y install https://dl.k6.io/rpm/repo.rpm   && dnf -y install     git     g++     just     jq     which     xdg-utils     nodejs npm     python3.12 python3.12-devel pipx     libffi-devel     docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin     unzip     postgresql postgresql-devel     k6 words   && dnf clean all   && pipx install --global     httpie     pdm pipenv      pgcli     pre-commit   && npm install -g     n     corepack   && corepack enable" did not complete successfully: exit code: 1

Reproduction

Run ov build from a fresh environment

Environment

  • Device: 15in M2 Macbook Air
  • OS: MacOS Sonoma 14.6.1
  • Other info: Using OrbStack

Additional context

@d3jawu d3jawu added 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work 🛠 goal: fix Bug fix labels Sep 15, 2024
@d3jawu
Copy link
Contributor Author

d3jawu commented Sep 15, 2024

If I delete the K6 related lines, I'm able to continue past this step:

diff --git a/docker/dev_env/Dockerfile b/docker/dev_env/Dockerfile
index d59e6ce3b..6dc175f81 100644
--- a/docker/dev_env/Dockerfile
+++ b/docker/dev_env/Dockerfile
@@ -51,7 +51,6 @@ ENV PATH="${PNPM_BIN}:${N_PREFIX}/bin:${PDM_PYTHONS}:${HOME}/.local/bin:${PATH}"
 RUN mkdir /pipx \
   && dnf -y install dnf-plugins-core \
   && dnf -y config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
-  && dnf -y install https://dl.k6.io/rpm/repo.rpm \
   && dnf -y install \
     git \
     g++ \
@@ -65,7 +64,7 @@ RUN mkdir /pipx \
     docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \
     unzip \
     postgresql postgresql-devel \
-    k6 words \
+    words \
   && dnf clean all \
   && pipx install --global \
     httpie \

Maybe it was introduced in #4903?

@dhruvkb
Copy link
Member

dhruvkb commented Sep 16, 2024

Can reproduce, ov build fails to install k6, even though the RPM for it has been installed in a prior command.

[root@618bc54a45e6 /]# sudo dnf install k6
k6                                                                                                                                                                        61  B/s | 243  B     00:03
Errors during downloading metadata for repository 'k6':
  - Status code: 403 for https://dl.k6.io/rpm/aarch64/repodata/repomd.xml (IP: xx.xx.xx.xx)
Error: Failed to download metadata for repo 'k6': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: k6
Last metadata expiration check: 0:01:00 ago on Mon Sep 16 04:37:12 2024.
No match for argument: k6
Error: Unable to find a match: k6

This is an architecture issue. The RPM does not have any aarch64 builds which Fedora requests when running in Docker under macOS. The solution would be run an x86 image of Fedora on macOS under emulation (might hurt performance).

@dhruvkb dhruvkb added 🟧 priority: high Stalls work on the project or its dependents 💻 aspect: code Concerns the software code in the repository 🤖 aspect: dx Concerns developers' experience with the codebase 🧱 stack: mgmt Related to repo management and automations and removed 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: mgmt Related to repo management and automations
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants