ceph-container icon indicating copy to clipboard operation
ceph-container copied to clipboard

Build image with centos8 failed

Open zhucan opened this issue 2 years ago • 5 comments

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 avatar Apr 25 '23 05:04 zhucan

[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

zhucan avatar Apr 25 '23 05:04 zhucan

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

saranyareddy24 avatar Jun 06 '23 07:06 saranyareddy24

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

zhucan avatar Jun 06 '23 07:06 zhucan

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

zhucan avatar Jun 06 '23 07:06 zhucan

With CentOS stream8 it worked. Thanks.

saranyareddy24 avatar Jun 06 '23 08:06 saranyareddy24

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.

github-actions[bot] avatar Apr 10 '24 20:04 github-actions[bot]

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

github-actions[bot] avatar Apr 18 '24 20:04 github-actions[bot]