Project

General

Profile

Actions

Feature #39242

closed

Add Apache config support for `/pypi` in puppet-pulpcore

Added by Pavan Soma Shekar about 2 months ago. Updated 24 days ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Description of problem:

The pulp team has indicated smart proxy sync with python repositories is expected to use/pypiover /pulp/content since the latter is only around for legacy publication sync. We will need to modify the Apache config to allow /pypi requests. This will need a puppet-pulpcore change and container-ctl to build this into the foreman installer (and probably an upgrade job to fix this).

This change was used to great effect on a dev environment:

<Location "/pypi">
RequestHeader unset X-CLIENT-CERT
RequestHeader set X-CLIENT-CERT "%{SSL_CLIENT_CERT}s" env=SSL_CLIENT_CERT
RequestHeader set X-FORWARDED-PROTO expr=%{REQUEST_SCHEME}
ProxyPass unix:///run/pulpcore-api.sock|http://pulpcore-api/pypi timeout=600
ProxyPassReverse unix:///run/pulpcore-api.sock|http://pulpcore-api/pypi
</Location>
How reproducible:

Always

Is this issue a regression from an earlier version:

No

Steps to Reproduce:

Run curl k -s <https://$(hostname)/pypi/&lt;org&gt;><environment>-<repo_label>/simple/

Actual behavior:
404 Not Found

Expected behavior:
The /pypi endpoint should connect to pulp’s pypi endpoint.

Actions #1

Updated by Pavan Soma Shekar about 2 months ago

  • Target version set to Katello 4.21.0
Actions #2

Updated by Pavan Soma Shekar about 2 months ago

  • Target version deleted (Katello 4.21.0)
Actions #3

Updated by Pavan Soma Shekar about 2 months ago

  • Red Hat JIRA deleted (SAT-44474)
Actions #4

Updated by Pavan Soma Shekar about 2 months ago

  • Category deleted (API)
  • Status changed from New to Closed
  • Assignee deleted (Pavan Soma Shekar)
Actions #5

Updated by Samir Jha about 2 months ago

  • Project changed from Katello to Installer
  • Category set to Foreman modules
  • Assignee set to Pavan Soma Shekar
  • Target version set to 3.19.0
  • Red Hat JIRA set to SAT-44474
  • Pull request https://github.com/theforeman/puppet-pulpcore/pull/400 added
Actions #6

Updated by Samir Jha about 2 months ago

  • Status changed from Closed to Ready For Testing

Marking "Ready for Testing".. Please link issue with PR to have automation close this when merged.

Actions #7

Updated by Ondřej Gajdušek 24 days ago

  • Fixed in Releases 3.19.0 added
Actions #8

Updated by Ondřej Gajdušek 24 days ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF