Azure / Azure/LinuxPatchExtension

RHEL 8+ yum-plugin-ps detection fails

未关闭
#334 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
12
派生
20
平均合并
6 天 4 小时
30 天内合并 PR
1

描述

**Describe the bug**
RHEL 8+ based VMs fail to run 'yum ps' because the yum-plugin-ps detection is broken.
The failure is on this line the command output is looking for 'yum-plugin-security' however it should look for 'yum-plugin-ps' as that package is being tried to install
https://github.com/Azure/LinuxPatchExtension/blob/525a32f111130046748dbb84a8620c06ee94a947/src/core/src/package_managers/YumPackageManager.py#L1042

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
Working detection of yum-plugin-ps

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

贡献指南

打开贡献指南

调研方向

打开 src/core/src/package_managers/YumPackageManager.py 的第 1042 行附近,检查用于检测 yum-plugin-ps 的软件包名称检查。 在基于 RHEL 8+ 的 VM 上重现 yum ps 路径,然后验证检测是否查找 yum-plugin-ps,以及命令是否成功执行。

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

评估

技术栈
python
领域
devops
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 发到你的邮箱

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