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

Build image with centos8 failed #2113

Closed
zhucan opened this issue Apr 25, 2023 · 7 comments
Closed

Build image with centos8 failed #2113

zhucan opened this issue Apr 25, 2023 · 7 comments
Labels

Comments

@zhucan
Copy link

zhucan commented Apr 25, 2023

Is this a bug report or feature request?

  • Bug Report

Bug Report

What happened:
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

What you expected to happen:
Build successfully

How to reproduce it (minimal and precise):

Environment:

  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Docker version (e.g. docker version): 20.10.23
  • Ceph version (e.g. ceph -v): 16.2.12
@zhucan
Copy link
Author

zhucan commented Apr 25, 2023

[root@rook-node01 ceph-container]# git diff
diff --git a/ceph-releases/ALL/centos/daemon-base/__DOCKERFILE_INSTALL__ b/ceph-releases/ALL/centos/daemon-base/__DOCKERFILE_INSTALL__
index 92931d0b..6d7b7278 100644
--- a/ceph-releases/ALL/centos/daemon-base/__DOCKERFILE_INSTALL__
+++ b/ceph-releases/ALL/centos/daemon-base/__DOCKERFILE_INSTALL__
@@ -1,3 +1,5 @@
+#sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* && \
+#sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-* && \
 yum install -y epel-release && \
 yum install -y jq && \
 bash -c ' \

add it to "ceph-releases/ALL/centos/daemon-base/DOCKERFILE_INSTALL" is ok

@saranyareddy24
Copy link

I have also hit the same issue. Should someone fix this issue?

@zhucan
Copy link
Author

zhucan commented Jun 6, 2023

@saranyareddy24 you can try use the "CentOS Stream release 8"

@zhucan
Copy link
Author

zhucan commented Jun 6, 2023

@saranyareddy24 https://github.com/zhucan/ceph-doc/blob/master/Build%20ceph.md there is a doc for it and
ignore the Chinese part.

@saranyareddy24
Copy link

saranyareddy24 commented Jun 6, 2023

With CentOS stream8 it worked. Thanks.

andrelucas added a commit to andrelucas/ceph-container that referenced this issue Apr 5, 2024
From:
  ceph#2113

With the commented lines uncommented.

Thank you!
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

Copy link

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants