<div dir="ltr">This has been solved.. I was missing some options in the squid.conf. I copy/pasted the full config example from the documentation, restarted squid, and things started working as expected. </div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018 at 1:40 PM Matthew Madey <<a href="mailto:mattmadey@gmail.com">mattmadey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I've been trying to get the deferred download features working on Pulp. Currently I have a "master" Pulp server with a custom repo, then a "slave" Pulp server that points to the "master" for the same content. I've installed\configured squid\pulp_streamer on the "slave" and setup it's custom repo to use on_demand download policy. Unfortunately, when a client requests a package, I get the error: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 400 Bad Request"</div><div dir="ltr"><br></div><div>Some interesting things that I noticed..</div><div><br></div><div>When setting up the custom repo on the "slave", I noticed that it created an additional /pulp/repos/ directory under /var/lib/pulp/published/yum/https/repos</div><div>Example:</div><div><br></div><div><div>[root@slave repos]# pwd</div><div>/var/lib/pulp/published/yum/https/repos/pulp/repos</div></div><div><br></div><div>This caused me to have to change the rewrite rule in the pulp_rpm.conf to the below, otherwise when I would go to <a href="http://slave.mycompany.com/pulp/repos/" target="_blank">http://slave.mycompany.com/pulp/repos/</a> I would have a pulp directory. Clicking on that would go to a repos subdir, which had a pulp subdir.. on and on.. because the rewrite rule would keep going back.. I'm thinking that might be part of the issue I'm seeing. Is this expected behavior when you synchronize one pulp repository with another pulp server?? I went down this route as per documentation since the Parent\Child setup is deprecated and very buggy..</div><div><br></div><div><div><Location /pulp/repos/></div><div>  RewriteEngine On</div><div>  RewriteCond %{HTTPS} on</div><div>  RewriteRule (.+/pulp/repos/)(.*) /pulp/content/var/www/pub/yum/https/repos/pulp/repos/$2 [DPI]</div><div>  RewriteCond %{HTTPS} off</div><div>  RewriteRule (.+/pulp/repos/)(.*) /pulp/content/var/www/pub/yum/http/repos/pulp/repos/$2 [DPI]</div></div><div><br></div><div>Next, I have nothing under /var/www/streamer/</div><div><br></div><div><div>[root@slave repos]# cd /var/www/streamer/</div><div>[root@slave streamer]# ls -al</div><div>total 0</div><div>drwxr-xr-x. 2 apache apache  6 Oct 11 14:33 .</div><div>drwxr-xr-x. 5 root   root   60 Oct 30 12:07 ..</div></div><div><br></div><div><br></div><div>I see the requests for the package coming in from the squid access log on the "slave" pulp server</div><div><br></div><div><div>[root@slave streamer]# tail -f /var/log/squid/access.log</div><div>1540919365.408      0 127.0.0.1 TAG_NONE/400 4221 GET /var/lib/pulp/content/units/rpm/ea/f2480dc9740f9a787e69e5a7d06f501a67780672f2a35ed22c182e7be387bc/puppet_test_package-1.0.2-1.el6.x86_64.rpm - HIER_NONE/- text/html</div></div><div><br></div><div>That content obviously does not exist because it hasn't been downloaded yet.. </div><div><br></div><div>I see under the published directory the link to the non-existent content unit</div><div><br></div><div><div>[root@slave p]# pwd</div><div>/var/lib/pulp/published/yum/https/repos/pulp/repos/rhel-x86_64-server-7-base-thd-tools/Packages/p</div><div>[root@slave p]# ll</div><div>total 0</div><div>lrwxrwxrwx. 1 apache apache 140 Oct 30 13:01 puppet_test_package-1.0.2-1.el6.x86_64.rpm -> /var/lib/pulp/content/units/rpm/ea/f2480dc9740f9a787e69e5a7d06f501a67780672f2a35ed22c182e7be387bc/puppet_test_package-1.0.2-1.el6.x86_64.rpm</div></div><div><br></div><div>Any ideas?</div><div><br></div><div><br></div></div></div></div></div></div></div></div>
</blockquote></div>