distutils and cloudutils warnings when upgrading to 4.22.1.0
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 6 天 19 小时
- 30 天内合并 PR
- 32
描述
### problem
I upgraded Cloudstack from version 4.22.0.1 to version 4.22.1.0 on Rocky Linux 10 via community packages.
During the packages upgrade the following errors are displayed:
```
Running scriptlet: cloudstack-common-4.22.1.0-1.noarch 10/10
/var/tmp/rpm-tmp.LLxpZf: line 2: unalias: cp: not found
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'distutils'
```
and
```
Running scriptlet: cloudstack-agent-4.22.1.0-1.noarch 10/10
Running /usr/bin/cloudstack-agent-upgrade to update bridge name for upgrade from CloudStack 4.0.x (and before) to CloudStack 4.1 (and later)
Traceback (most recent call last):
File "/usr/bin/cloudstack-agent-upgrade", line 18, in
from cloudutils.networkConfig import networkConfig
ModuleNotFoundError: No module named 'cloudutils'
```
### versions
Cloudstack upgraded from 4.22.0.1 to 4.22.1.0
Rocky Linux 10
KVM hypervisor
### The steps to reproduce the bug
1. dnf upgrade cloudstack-management cloudstack-usage
2. dnf upgrade cloudstack-agent
3.
...
### What to do about it?
_No response_
贡献指南
调研方向
在 Rocky Linux 10 上重现升级,然后检查软件包 scriptlet 和 /usr/bin/cloudstack-agent-upgrade,包括它们对 distutils 和 cloudutils.networkConfig 的导入。跟踪这些模块在升级期间如何打包和加载。当 cloudstack-common 和 cloudstack-agent 的升级在没有这些 ModuleNotFoundError 警告的情况下完成时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- linux, python
- 领域
- devops, infrastructure
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 48/100