Upstream-pulp replication breaks links between distributions and repositories
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by tracing upstream-pulp replication for RPM distributions and inspect how replicated distributions are linked to repositories, repository versions, or publications. The report shows repository, repository_version, and publication are all null after replication, and a distribution update with --repository restores the link. Done means replication preserves a valid content link so the distribution serves content without a manual update.
由索引模型根据 Issue 内容生成。
描述
Version
pulp core version: 3.121.3, rpm 3.39.1
Describe the bug
After a successful upstream-pulp replication, all website links show this error message:
404: Distribution is not pointing to a publication, repository, repository version, or remote.
Looking at the json configuration, I see that the distribution does not have the repository listed:
username@secondserver:~> pulp rpm distribution show --name rhel8.10-appstream-x86_64
{
"pulp_href": "/pulp/api/v3/distributions/rpm/rpm/01a18df1-6a59-71ad-a14a-b73d0cdbb6d5/",
"prn": "prn:rpm.rpmdistribution:01a18df1-6a59-71ad-a14a-b73d0cdbb6d5",
"pulp_created": "2026-10-30T17:52:51.292327Z",
"pulp_last_updated": "2026-10-30T17:52:51.292340Z",
"base_path": "rhel8.10-appstream-x86_64",
"base_url": "https://www.firstserver.com/pulp/content/rhel8.10-appstream-x86_64/",
"content_guard": null,
"content_guard_prn": null,
"no_content_change_since": null,
"hidden": false,
"pulp_labels": {
"UpstreamPulp": "01a18d18-3985-721d-b44c-33e3b12abf32"
},
"name": "rhel8.10-appstream-x86_64",
"repository": null,
"repository_version": null,
"publication": null,
"generate_repo_config": false,
"checkpoint": false
}
To Reproduce
Configure a working set of rpm repositories - remote, repository, distribution. Verify it all works. On another server ("www.secondserver.com"), configure upstream-pulp:
pulp upstream-pulp create --name qa-pulp --base-url "https://www.<firstserver>.com" --api-root pulp --policy all --username admin --password <password>.
Run replication: pulp upstream-pulp replicate --upstream-pulp qa-pulp
Wait for replication to complete. Then test the website (www.secondserver.com/pulp/content). Verify you see all distributions from the first server, however, clicking on each one produces the above 404 error message.
Expected behavior
All repositories should replicate and work right after the replication command.
Additional context
It's very easy to fix - all it takes is one command on the second (target / destination) server to reestablish the link between distributions and repositories:
pulp rpm distribution update --name rhel8.10-baseos-x86_64 --repository rhel8.10-baseos-x86_64
However, each next upstream-pulp replicate run breaks the links again, so the links have to be reestablished.
- 主要语言
- Python
- 星标
- 641
- 派生
- 178
- 平均合并
- 17 小时 36 分钟
- 30 天内合并 PR
- 76
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pulp/pulpcore 的其他 Issue
-
Content cache ignores the query string, so one path serves the response cached for another query未关闭Triage-Needed
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Issue
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Feature
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
Creating a repository version from a large base_version uses excessive memory (can OOM the worker)可能已有人在做 @dkliban 今天认领。 未关闭Issue Triage-Needed
难度 4/5 3-5 天 新手友好度 18/100
维护者通常 1 天内回复
-
Feature Triage-Needed
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
bug bugfix
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
simplify
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
drevendev/Devostasis#158 · 1 条评论 ·
-
Elko Super TR: temperature stops updating once the thermostat reports its active sensor可能已有人在做 @zigpy-review-bot 今天认领。 未关闭bot: code audit
难度 2/5 1-3 小时 新手友好度 85/100
zigpy/zha-device-handlers#5790 ·
维护者通常 1 天内回复
-
source defect
难度 2/5 1-3 小时 新手友好度 80/100
mampfes/hacs_waste_collection_schedule#8269 ·
维护者通常 1 天内回复