create-kubernetes-binaries-iso.sh builds the ISO without setting a volume ID on EL8 based os's
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- kubernetes, shell
- 领域
- cloud, infrastructure
调研方向
从 create-kubernetes-binaries-iso.sh 开始,找到创建 ISO 的 mkisofs 命令。使用 EL8 的 xorriso 兼容工具重现该问题,然后使用 blkid 验证生成的 ISO 是否具有预期的 CDROM 卷标,并且可以在 CloudStack 中挂载。
由索引模型根据 Issue 内容生成。
描述
problem
create-kubernetes-binaries-iso.sh builds the ISO without setting a volume ID on EL8 based os
versions
ACS 4.20.X
ACS 4.22.X
ACS 4.23
Management server : Oracle 8 , rocky 8
The steps to reproduce the bug
- ISO tooling — genisoimage does not exist on EL8; xorriso provides mkisofs
sudo dnf install -y xorriso curl wget
- containerd (for ctr) — static tarball avoids the docker-ce repo and podman conflicts
VER=1.7.24
curl -fsSL "https://github.com/containerd/containerd/releases/download/v${VER}/containerd-${VER}-linux-amd64.tar.gz" \
| sudo tar -C /usr/local -xz
curl -fsSL -o /tmp/runc https://github.com/opencontainers/runc/releases/download/v1.2.3/runc.amd64
sudo install -m 755 /tmp/runc /usr/local/sbin/runc
curl -fsSL https://raw.githubusercontent.com/containerd/containerd/main/containerd.service \
| sudo tee /etc/systemd/system/containerd.service >/dev/null
sudo systemctl daemon-reload && sudo systemctl enable --now containerd
sudo ln -sf /usr/local/bin/ctr /usr/bin/ctr # sudo secure_path excludes /usr/local/bin
- Verify
mkisofs --version && sudo ctr --version && wget --version | head -1 && curl --version | head -1
- Execute the script
./create-kubernetes-binaries-iso.sh /var/www/html 1.37.0 1.9.1 1.37.0 https://raw.githubusercontent.com/projectcalico/calico/v3.32.2/manifests/calico.yaml 0.45.0 setup-v1.37.0 amd64 3.7.0
- Verify the generated iso volume label
[root@ref-trl-12298-k-Mr8-suresh-anaparti-mgmt1 util]# blkid /var/www/html/setup-v1.37.0-x86_64.iso
/var/www/html/setup-v1.37.0-x86_64.iso: BLOCK_SIZE="2048" UUID="2026-09-16-08-13-12-00" LABEL="ISOIMAGE" TYPE="iso9660"
-
If the iso is used in cloudstack , the iso doesn't get mounted
-
Change the script
sed -i 's|^mkisofs -o |mkisofs -V CDROM -o |' create-kubernetes-binaries-iso.sh
- Run the script again and check the volume label
./create-kubernetes-binaries-iso.sh /var/www/html 1.37.0 1.9.1 1.37.0 https://raw.githubusercontent.com/projectcalico/calico/v3.32.2/manifests/calico.yaml 0.45.0 setup-v1.37.0 amd64 3.7.0
blkid /var/www/html/setup-v1.37.0-x86_64.iso
/var/www/html/setup-v1.37.0-x86_64.iso: BLOCK_SIZE="2048" UUID="2026-09-16-08-34-56-00" LABEL="CDROM" TYPE="iso9660"
Issue is not present with ubuntu based os
┌──────────────────────┬───────────────┬───────────────────┐
│ │ Default volid │ With -V CDROM │
├──────────────────────┼───────────────┼───────────────────┤
│ Ubuntu (genisoimage) │ CDROM │ CDROM — unchanged │
├──────────────────────┼───────────────┼───────────────────┤
│ OL8 (xorriso compat) │ ISOIMAGE │ CDROM — fixed │
└──────────────────────┴───────────────┴───────────────────┘
What to do about it?
Make the following modification to the create-kubernetes-binaries-iso.sh
sed -i 's|^mkisofs -o |mkisofs -V CDROM -o |' create-kubernetes-binaries-iso.sh
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 7 天 5 小时
- 30 天内合并 PR
- 28
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/cloudstack 的其他 Issue
-
bug component:projects component:UI
难度 1/5 1 小时以内 新手友好度 88/100
apache/cloudstack#14070 · 5 条评论 ·
-
component:backup
难度 2/5 1-3 小时 新手友好度 76/100
apache/cloudstack#14013 ·
-
KVM agent fails to connect to Ceph RBD storage pool after upgrading Ceph client to Tentacle 20.2.4 未关闭bug component:ceph
难度 2/5 1-3 小时 新手友好度 78/100
apache/cloudstack#13989 · 3 条评论 ·
-
component:UI
难度 2/5 1-3 小时 新手友好度 68/100
apache/cloudstack#13944 · 3 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
apache/cloudstack#13921 ·
查看 apache/cloudstack 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
infinispan/infinispan#18150 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
untriaged
难度 2/5 1-3 小时 新手友好度 82/100
opensearch-project/k-NN#3597 ·
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 82/100