Upstream-pulp replication breaks links between distributions and repositories

オープン
#8,316 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
47/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend, databases

調査の方向性

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 の本文から書いたものです。

説明

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分
マージ済み PR(30日)
76

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pulp/pulpcore のほかの issue

pulp/pulpcore の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。