Unable to set up pulp-python sync from JFrog local pypi repository
Maintainer thường phản hồi trong vòng 2 ngày
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
- 35/100
Hướng nghiên cứu
Start by reproducing the authenticated sync described in the issue with a JFrog local PyPI repository, using the listed pulp-python 3.11.0 setup and remote credentials. Compare the request URL and authentication seen in the JFrog logs with the configured remote; done means the sync succeeds with credentials passed correctly and the package path is formed as expected.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version
Deployed via Operator:
{
"versions": [
{
"component": "core",
"version": "3.49.1",
"package": "pulpcore",
"module": "pulpcore.app",
"domain_compatible": true
},
{
"component": "python",
"version": "3.11.0",
"package": "pulp-python",
"module": "pulp_python.app",
"domain_compatible": false
},
Describe the bug
I set up a Pulp python remote pointing at a local JFrog pypi repository ("url": "https://<redacted>/artifactory/api/pypi/pypi-local/simple"), providing valid credentials in the process (with username and password), and linked it with a Pulp python repository and distribution. However, it appears that the credentials are not being passed during the requests when syncing, or the URL is being malformed, or something. From JFrog logs (note the non_authenticated_user and 401):
2024-05-14T16:33:15.472Z|<redacted>|<redacted>|non_authenticated_user|GET|/api/pypi/pypi-local/simple/pypi/<redacted>/json|401|-1|0|1|bandersnatch/6.1.0 (cpython 3.9.18-final0, Linux x86_64) (aiohttp 3.9.3)
For what it's worth, that URL also looks strange... I would expect .../simple/<redacted>/json, not .../simple/pypi/<redacted>/json. It's worth noting that Artifactory requires the username/password to be included in the URL but Pulp prevents that:
Error: {"url":["The remote url contains username or password. Please use remote username or password instead."]}
To Reproduce
Steps to reproduce the behavior:
- Create a local pypi repository in JFrog.
- Create a Pulp remote pointing at the JFrog pypi repository (and then set up a Pulp repository and distribution as needed to sync it).
- Attempt an authenticated sync.
Expected behavior
The sync should happen successfully.
Additional context
N/A
- Ngôn ngữ chính
- Python
- Star
- 49
- Fork
- 92
- Merge trung bình
- 23 giờ 45 phút
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pulp/pulp_python
-
pip gets the package in place of its metadata through a pull-through link once the package is cachedCó thể đã có người làm @aevnsvi đã nhận 26 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
pulp/pulp_python#1453 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Pull-through: pip gets the wheel instead of its PEP 658 metadata (or the reverse), hash mismatchCó thể đã có người làm @gerrod3 đã nhận 39 ngày trước. Đang mởIssue
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 22/100
pulp/pulp_python#1428 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Issue
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
pulp/pulp_python#1219 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
pulp/pulp_python#1005 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
pulp/pulp_python#999 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của pulp/pulp_python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
vllm-project/vllm#69791 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
BCStudentSoftwareDevTeam/cas#481 ·
Maintainer thường phản hồi trong vòng 7 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày