Skip to content

publish_upstream_release_fields does not seem to affect (In)Release files #1460

@mayrstefan

Description

@mayrstefan

Version
Pulp is used as a container image. We are running:

  • pulp-minimal:3.106
  • pulp-web:3.106

Describe the bug
Although all repositories have "publish_upstream_release_fields": true, set, the generated (In)Release files contain the default information:

Origin: Pulp 3
Codename: default
Date: ...
Architectures: all amd64
Components: all

Using pulp as a mirror for multiple external repositories they cannot be differentiated anymore (for pinning/apt preferences)

# apt policy 
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://pulp.example.com/pulp/content/deb/ubuntu-2404/r-base default/all all Packages
     release o=Pulp 3,n=default,c=all,b=all
     origin pulp.example.com
 500 https://pulp.example.com/pulp/content/deb/ubuntu-2404/python default/all all Packages
     release o=Pulp 3,n=default,c=all,b=all
     origin pulp.example.com
...

To Reproduce
Steps to reproduce the behavior:

  1. mirror an Ubuntu repository
  2. look at the generated release file
# curl -s http://pulpexample.com/pulp/content/deb/ubuntu-2404/main/dists/default/Release | head
Origin: Pulp 3
Suite: default
Codename: default
Date: Thu, 28 May 2026 06:26:26 +0000
Architectures: all
Components: empty
Acquire-By-Hash: no
SHA1:
 da39a3ee5e6b4b0d3255bfef95601890afd80709                0 empty/binary-all/Packages
 df1892c864b3585076ff692d1d991aac88a24370               29 empty/binary-all/Packages.gz
...

Expected behavior
We would expect to see the mirror release information from the remote, like in https://archive.ubuntu.com/ubuntu/dists/noble/InRelease

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions