Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug] Build image cbdb-build-rocky9-latest: dnf fails on Rocky minor-version transitions due to pinned 9.7 baseurls

已关闭
#1,709 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
docker, linux

调研方向

找到生成 apache/incubator-cloudberry:cbdb-build-rocky9-latest 的 Dockerfile 或镜像构建入口点,然后检查镜像中的 /etc/yum.repos.d/rocky*.repo。使用 dnf install -y glibc-langpack-de 重现问题,并将 repository URL 与所述的 Rocky 9 迁移进行比较。完成的标准是:重建后的镜像能够安装软件包而不会出现 9.7 镜像 404,并且仍可用于所引用的 CI workflow。

由索引模型根据 Issue 内容生成。

描述

type: Bug
Apache Cloudberry version

cloudberry 2.1.x /2.0.x

What happened

Summary

The CI build image apache/incubator-cloudberry:cbdb-build-rocky9-latest
ships dnf repository files with baseurl paths pinned to a specific
Rocky Linux minor version (currently 9.7). Whenever Rocky publishes
the next point release (now 9.8), upstream mirrors stop serving the
old minor — the previous tree is moved to vault.rockylinux.org. From
that moment, every dnf install inside the image fails with hundreds of
404s on *-modules.yaml.xz, *-primary.xml.gz, *-filelists.xml.gz,
etc. This breaks any downstream CI that does runtime package installs
on top of this image, including apache/cloudberry-backup.

What you think should happen instead

Root cause

/etc/yum.repos.d/rocky*.repo (or the mirrorlist= URLs they generate)
embed the minor version 9.7 instead of the rolling major 9 (or
$releasever mapped to 9). Mirror network behavior on Rocky point
releases has been consistent for years: only the current minor is on
live mirrors; older minors move to vault.rockylinux.org.

Proposed fixes (any one is sufficient)

  1. Rolling major in baseurl (preferred). Change repo baseurl
    from .../rocky/9.7/... to .../rocky/9/... (or rely on the
    mirrorlist= form that Rocky's official rocky.repo uses, which
    resolves the current point release automatically). This makes the
    image resilient across future 9.x → 9.y transitions without any
    maintenance.
  2. Rebuild image on Rocky 9.8 base. Short-term unblock, but the
    same problem will recur at 9.9.
  3. Add vault.rockylinux.org as a fallback baseurl. Keeps the
    pinned-minor model working after the transition. Slower than live
    mirrors but always available.

In addition, it would help downstream CIs if commonly required locale
packages were pre-installed in the image (e.g.
glibc-langpack-de, glibc-langpack-en), so that a transient mirror
outage upstream doesn't cascade into every Cloudberry-related test job.

Impact

Until the image is republished, every CI run against
apache/cloudberry-backup (and likely any other repo using this image
plus a runtime dnf install) will fail at the package-install step,
regardless of code changes in the PR. We are currently working around
it by rewriting the repo files to point at vault.rockylinux.org in
the workflow itself, but that is brittle and not appropriate as a
long-term fix.

Happy to send a PR against whichever Dockerfile produces this image if
the maintainers can point me at it.

How to reproduce

Reproduction

Inside a fresh container of apache/incubator-cloudberry:cbdb-build-rocky9-latest:

dnf install -y glibc-langpack-de                                                                                                                                      
                                                          
fails with:

Errors during downloading metadata for repository 'appstream':
  - Status code: 404 for http://.../rocky/9.7/AppStream/x86_64/os/repodata/...                                                                                        
Error: Failed to download metadata for repo 'appstream'                                                                                                               
                                                                                                                                                                      
(All ~40 mirrors in the mirrorlist 404 because none of them carry 9.7/                                                                                                
on the live tree anymore.)                                                                                                                                            
                                                                                                                                                                      
Real CI failure for reference:                            
- Repo: apache/cloudberry-backup                                                                                                                                      
- Workflow: cloudberry-backup-ci.yml, step Setup Locale for Integration Tests                                                                                         
- Symptom: dnf install -y glibc-langpack-de fails with the 404 storm above 

### Operating System

rockyLinux 9.x



### Code of Conduct

- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/cloudberry/blob/main/CODE_OF_CONDUCT.md).
主要语言
C
星标
1.4k
派生
248
平均合并
4 天 13 小时
30 天内合并 PR
38

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/cloudberry 的其他 Issue

查看 apache/cloudberry 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。