alibaba / alibaba/cloud-kernel

AliyunLinux2 创建快照/镜像 后产生无用的 aliyun-base.repo 引起报错

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
aliyun-linux-os
Dominant language
C
Stars
401
Forks
99
PR merge metrics
No merged PRs in 30d

Description

[问题描述]:

1. 用公共镜像,yum update 了一下系统

2. 制作快照

3. 停机后回滚快照,生成了 aliyun-base 的repo。 (初步怀疑是cloud-init出来的,因为初始的公共镜像只有 AliYun 的 repo)

4. 里面的baseurl是 http://mirrors.cloud.aliyuncs.com/aliyunlinux/15.01/os/$basearch/, 这个地址下只有 15.01 的老的库,没有2版本的库,引用系统变量,yum 就会报错。

有修改 os-release 和 alinux-release 为 CentOS,可能会成为干扰项导致cloud-init出错

[建议方案]:

修复 cloud-init 相关问题

已经同步至聆听平台: https://connect.aliyun.com/suggestion/142611

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the snapshot rollback sequence using the public image, yum update, and the modified os-release and alinux-release files. Investigate the cloud-init-related generation of aliyun-base.repo and verify that rollback no longer leaves a repository pointing to the unavailable 15.01 path or causing yum errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
cloud, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.