apache / apache/cloudstack

distutils and cloudutils warnings when upgrading to 4.22.1.0

未關閉
#13,265 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
component:upgrade EL10 status:needs-investigation
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。