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

ov init fails because Docker engine cannot be installed on Fedora 42 #5246

Closed
obulat opened this issue Dec 4, 2024 · 0 comments · Fixed by #5247
Closed

ov init fails because Docker engine cannot be installed on Fedora 42 #5246

obulat opened this issue Dec 4, 2024 · 0 comments · Fixed by #5247
Labels
🤖 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

@obulat
Copy link
Contributor

obulat commented Dec 4, 2024

Description

Docker engine currently only supports Fedora 40/41, and does not support Fedora 42. This is why ov init is failing after the recent Fedora update in #5243.

There are also some other changes in dnf that make ov init fail.

Reproduction

  1. Checkout the repository and run `ov init`. See the error: `Unknown argument "--add-repo" for command "config-manager".`
  2. Replace the command in `docker/dev_env/Dockerfile` with `&& dnf -y config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo`
  3. Run `ov init` and see another error:
0.465 Updating and loading repositories:                                                                                                                                                                                             
1.719  Docker CE Stable - x86_64              100% |   1.4 KiB/s |   1.5 KiB |  00m01s                                                                                                                                               
1.723 >>> Status code: 404 for https://download.docker.com/linux/fedora/rawhide/x86_64                                                                                                                                               
1.723 >>> Status code: 404 for https://download.docker.com/linux/fedora/rawhide/x86_64
1.723 >>> Status code: 404 for https://download.docker.com/linux/fedora/rawhide/x86_64
1.723 >>> Status code: 404 for https://download.docker.com/linux/fedora/rawhide/x86_64
1.723 >>> Librepo error: Cannot download repomd.xml: Cannot download repodata/repomd.x
1.732 Repositories loaded.
2.298 Failed to resolve the transaction:
2.298 No match for argument: docker-ce
2.298 No match for argument: docker-ce-cli
2.298 No match for argument: containerd.io
2.298 No match for argument: docker-buildx-plugin
2.298 No match for argument: docker-compose-plugin
2.299 You can try to add to command line:
2.299   --skip-unavailable to skip unavailable packages

Environment

  • OS: MacOS with Fedora 42 in Docker (ov)

Additional context

To fix this issue, we need to:

  • downgrade Fedora version to 41
  • replace the config-manager command with && dnf -y config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo
  • replace dnf with dnf5 as it's the supported version in Fedora 41
@obulat obulat added 🛠 goal: fix Bug fix 🟧 priority: high Stalls work on the project or its dependents 🤖 aspect: dx Concerns developers' experience with the codebase 🧱 stack: mgmt Related to repo management and automations labels Dec 4, 2024
@openverse-bot openverse-bot moved this to 📋 Backlog in Openverse Backlog Dec 4, 2024
@obulat obulat mentioned this issue Dec 4, 2024
8 tasks
@openverse-bot openverse-bot moved this from 📋 Backlog to 🏗 In Progress in Openverse Backlog Dec 4, 2024
@openverse-bot openverse-bot moved this from 🏗 In Progress to ✅ Done in Openverse Backlog Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 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.

1 participant