Project

General

Profile

Bug #33241

404 error through content proxy due to incorrect location_href

Added by Gerald Vogt 9 months ago. Updated 5 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

I posted this here: https://community.theforeman.org/t/katello-4-1-2-1-404-error-through-content-proxy-due-to-incorrect-location-href/24812

It seems that for some reason the main server and the content proxy can use different schemas for the organization of the packages inside a repository which doesn't always seem to match.

Client accesses content proxy to retrieve the latest kibana rpm:

https://foreman-content.example.com/pulp/content/ORG/Production/centos7/custom/elastic/elasticsearch-6-x/Packages/k/kibana-6.8.18-x86_64.rpm

which results in a 404 for the client.

The content proxy uses the following URL to get the rpm from the main server:

https://foreman.example.com/pulp/content/ORG/Production/centos8/custom/elastic/elasticsearch-6-x/6.8.18/kibana-6.8.18-x86_64.rpm

which does not exist. The correct URL would be:

https://foreman.example.com/pulp/content/ORG/Production/centos8/custom/elastic/elasticsearch-6-x/Packages/k/kibana-6.8.18-x86_64.rpm

History

#1 Updated by Chris Roberts 9 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.3.0
  • Category set to Repositories

#2 Updated by Gerald Vogt 9 months ago

This issue also affects other repositories like centos7 updates. I have just posted more in the community

For example, access through the proxy to bind-libs

https://foreman-content.example.com/pulp/content/ORG/Production/centos7/custom/centos7/updates_x86_64/Packages/bind-libs-9.11.4-26.P2.el7_9.5.x86_64.rpm

is mapped to the main server URL

https://foreman.example.com/pulp/content/ORG/Production/centos7/custom/centos7/updates_x86_64/Packages/b/bind-libs-9.11.4-26.P2.el7_9.5.x86_64.rpm

which does not exist. The main server has it at

https://foreman.example.com/pulp/content/ORG/Production/centos7/custom/centos7/updates_x86_64/Packages/bind-libs-9.11.4-26.P2.el7_9.5.x86_64.rpm

I have just noticed this during a pxe installation test. It's not only bind-libs but according to the logs a total of 133 packages could not be downloaded...

#3 Updated by Justin Sherrill 5 months ago

  • Target version changed from Katello 4.3.0 to Katello Backlog
  • Status changed from New to Rejected

Closing this as the underlying problem was that pulp was mirroring metadata that shouldn't be mirrored. This was due to 'mirror on sync' being reused for that feature. You can disable mirror on sync for now, but in 4.3 a new option 'mirroring policy' is present to give more fine grained control of this mirroring.

Also available in: Atom PDF