Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support for Excluded Yum Repositories in /etc/yum/pluginconf.d/fastestmirror.conf

Đang mở
#55 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
devops, operating-systems

Hướng nghiên cứu

Start by tracing the migration's /usr/bin/leapp upgrade --nowarn entry point and how it handles /etc/yum/pluginconf.d/fastestmirror.conf. Determine where excluded repositories are read or passed into the migration, then verify that listed repositories are not selected and that migrations can proceed without them.

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

Mô tả

enhancement

Is your feature request related to a problem? Please describe.

Yes, the problem occurs when the tool does not account for the yum repositories that have been added as exclusions in /etc/yum/pluginconf.d/fastestmirror.conf. These exclusions were added due to recurring issues with specific repositories. As a result, the tool selects these problematic repositories, which leads to errors during migrations. This has caused us to restart migrations multiple times, hoping that a different repository will be chosen.

Describe the solution you'd like

We would like the tool to recognize and respect the excluded yum repositories listed in /etc/yum/pluginconf.d/fastestmirror.conf.
By doing so, the tool can avoid these problematic repositories and proceed with the migration process more reliably.

Describe alternatives you've considered

One alternative we've tried is manually restarting the migration process multiple times to force the tool to choose a different repository. However, this approach is inefficient and time-consuming.

Additional context

The error message we frequently encounter is as follows:

2024-12-12 21:31:10,421 - INFO - stdout: [MIRROR] alt-python27-raven-6.3.0-1.el8.noarch.rpm: Status code: 500 for https://cl-mirror.versio.nl/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/alt-python27-raven-6.3.0-1.el8.noarch.rpm (IP: 62.221.251.201)
2024-12-12 21:31:10,421 - INFO - stdout: [MIRROR] alt-python27-repoze-lru-0.6-1.el8.noarch.rpm: Status code: 500 for https://cl-mirror.versio.nl/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/alt-python27-repoze-lru-0.6-1.el8.noarch.rpm (IP: 62.221.251.201)
2024-12-12 21:31:10,421 - INFO - stdout: [MIRROR] alt-python27-requests-2.19.1-1.el8.noarch.rpm: Status code: 500 for https://cl-mirror.versio.nl/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/alt-python27-requests-2.19.1-1.el8.noarch.rpm (IP: 62.221.251.201)
2024-12-12 21:31:10,421 - INFO - stdout: [MIRROR] alt-python27-repoze-lru-0.6-1.el8.noarch.rpm: Status code: 500 for https://cl-mirror.versio.nl/XMLRPC//GET-REQ/cloudlinux-x86_64-server-8/alt-python27-repoze-lru-0.6-1.el8.noarch.rpm (IP: 62.221.251.201)
2024-12-12 21:31:10,421 - INFO - stdout: [FAILED] alt-python27-repoze-lru-0.6-1.el8.noarch.rpm: No more mirrors to try - All mirrors were already tried without success
2024-12-12 21:31:10,421 - INFO - stdout:
2024-12-12 21:31:10,422 - INFO - stdout: The downloaded packages were saved in cache until the next successful transaction.
2024-12-12 21:31:10,422 - INFO - stdout: You can remove cached packages by executing 'dnf clean packages'.
2024-12-12 21:31:10,422 - INFO - stdout:
2024-12-12 21:31:10,422 - INFO - stdout: STDERR:
2024-12-12 21:31:10,422 - INFO - stdout: Failed to create directory /var/lib/leapp/el8userspace//sys/fs/selinux: Read-only file system
2024-12-12 21:31:10,422 - INFO - stdout: Failed to create directory /var/lib/leapp/el8userspace//sys/fs/selinux: Read-only file system
2024-12-12 21:31:10,422 - INFO - stdout: No matches found for the following disable plugin patterns: subscription-manager
2024-12-12 21:31:10,422 - INFO - stdout: Warning: Package marked by Leapp to upgrade not found in repositories metadata: leapp-upgrade-el7toel8 gpg-pubkey
2024-12-12 21:31:10,422 - INFO - stdout: Error: Error downloading packages:
2024-12-12 21:31:10,422 - INFO - stdout:   alt-python27-repoze-lru-0.6-1.el8.noarch: Cannot download, all mirrors were already tried without success

2024-12-12 21:31:10,448 - ERROR - Command ['/usr/bin/leapp', 'upgrade', '--nowarn'] failed with return code 1
2024-12-12 21:31:10,448 - ERROR - Failed: doing the conversion. The reason: Command '['/usr/bin/leapp', 'upgrade', '--nowarn']' returned non-zero exit status 1.
2024-12-12 21:31:10,482 - DEBUG - Going to write json '/usr/local/psa/var/cloudlinux7to8/actions.json' with new data

2024-12-12 21:31:10,624 - DEBUG - Sent error report
2024-12-12 21:31:10,632 - DEBUG - Trying to send status of conversion by report-update utility '/var/cache/parallels_installer/report-update'
2024-12-12 21:31:11,180 - ERROR - cloudlinux7to8 process has failed. Error: Failed: doing the conversion. The reason: Command '['/usr/bin/leapp', 'upgrade', '--nowarn']' returned non-zero exit status 1.
Ngôn ngữ chính
Python
Star
7
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của plesk/cloudlinux7to8

Tất cả issue của plesk/cloudlinux7to8

Issue tương tự

Thêm issue về Python

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.