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

distutils and cloudutils warnings when upgrading to 4.22.1.0

未关闭
#13,265 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
linux, python

调研方向

在 Rocky Linux 10 上重现升级,然后检查软件包 scriptlet 和 /usr/bin/cloudstack-agent-upgrade,包括它们对 distutils 和 cloudutils.networkConfig 的导入。跟踪这些模块在升级期间如何打包和加载。当 cloudstack-common 和 cloudstack-agent 的升级在没有这些 ModuleNotFoundError 警告的情况下完成时,即表示完成。

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

描述

component:upgrade EL10 status:needs-investigation
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 "<string>", line 1, in <module>
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 <module>
    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

...

What to do about it?

No response

主要语言
Java
星标
3.1k
派生
1.4k
平均合并
6 天 20 小时
30 天内合并 PR
27

贡献指南

打开贡献指南

从这里开始

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

apache/cloudstack 的其他 Issue

查看 apache/cloudstack 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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