Project

Profile

Help

Task #1182

Pulp - Story #1150: As a user, I can lazily fetch repositories

Pulp - Story #1180: As a user, I can identify a lazy-loader using server.conf and Pulp will redirect for content it does not have

Update the apache configuration to support Lazy.

Added by bmbouter over 6 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.8.0
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Update /etc/httpd/conf.d/pulp_rpm.conf and replace Alias and <Directory/> directives with a <Location/> directive. This causes content GET request to be directed to the /pulp/content endpoint which performs authorization and redirect to the streamer as needed.

Exampple:

# -- HTTPS Repositories ---------
Alias /pulp/repos /var/www/pub/yum/https/repos

<Directory /var/www/pub/yum/https>
    WSGIAccessScript /srv/pulp/repo_auth.wsgi
    SSLRequireSSL
    SSLVerifyClient optional_no_ca
    SSLVerifyDepth 2
    SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth
    Options FollowSymLinks Indexes
</Directory>

Changed to:

<Location /pulp/repos/>
    RewriteEngine On
    RewriteRule (.+/pulp/repos/)(.+) /pulp/content/var/www/pub/yum/https/repos/$2
    SSLRequireSSL
    SSLVerifyClient optional_no_ca
    SSLVerifyDepth 2
    SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth
</Location>

Checklist

History

#1 Updated by bmbouter over 6 years ago

  • Subject changed from Add ErrorDocument directive to use platform redirect handler for content units to Add ErrorDocument directive to rpm httpd conf

#2 Updated by bmbouter over 6 years ago

  • Parent task set to #1150

#3 Updated by bmbouter over 6 years ago

  • Parent task changed from #1150 to #1180

#4 Updated by jortel@redhat.com about 6 years ago

  • Description updated (diff)

#5 Updated by jortel@redhat.com about 6 years ago

  • Subject changed from Add ErrorDocument directive to rpm httpd conf to Update the apache configuration so GET request are routed to the /pulp/content endpoint.
  • Description updated (diff)

#6 Updated by jortel@redhat.com about 6 years ago

  • Subject changed from Update the apache configuration so GET request are routed to the /pulp/content endpoint. to Update the apache configuration to support Lazy.

#7 Updated by jortel@redhat.com about 6 years ago

  • Checklist item changed from Add the necessary ErrorDocument directives to Update the directives

#8 Updated by jcline@redhat.com almost 6 years ago

  • Status changed from NEW to ASSIGNED

#10 Updated by jcline@redhat.com almost 6 years ago

  • Assignee set to jcline@redhat.com

#11 Updated by jcline@redhat.com almost 6 years ago

  • Status changed from ASSIGNED to MODIFIED
  • % Done changed from 70 to 100

#12 Updated by rbarlow almost 6 years ago

  • Status changed from MODIFIED to 5
  • Platform Release set to 2.8.0

#13 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#14 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF