Project

General

Profile

Actions

Bug #33241

closed

404 error through content proxy due to incorrect location_href

Added by Gerald Vogt over 3 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Chris Roberts over 3 years ago

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

Updated by Gerald Vogt over 3 years 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...

Actions #3

Updated by Justin Sherrill about 3 years ago

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

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.

Actions

Also available in: Atom PDF