Azure / Azure/LinuxPatchExtension

RHEL 8+ yum-plugin-ps detection fails

Đang mở
#334 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
12
Fork
20
Merge trung bình
6 ngày 4 giờ
Pull request đã merge (30 ngày)
1

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Mở src/core/src/package_managers/YumPackageManager.py quanh dòng 1042 và kiểm tra phần kiểm tra tên gói được dùng để phát hiện yum-plugin-ps. Tái hiện đường dẫn yum ps trên một VM dựa trên RHEL 8+, sau đó xác minh rằng quá trình phát hiện tìm yum-plugin-ps và lệnh thực thi thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
devops
Loại issue
Lỗi
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.