Project

Profile

Help

Issue #4798

Updated by ttereshc over 1 year ago

Description of problem: I am new to Pulp, uploaded and published an rpm file but the rpm is not accessible. Why upload and publish will be successful if file is not accessible.

Steps to Reproduce:

1. pulp-admin rpm repo uploads rpm --repo-id dev-epel-7-x86_64 -f python2-markdown-2.4.1-4.el7.noarch.rpm -d .

2. pulp-admin rpm repo publish run --repo-id dev-epel-7-x86_64

3. pulp-admin rpm repo content rpm --repo-id dev-epel-7-x86_64 --match 'filename=python2-markdown-2.4.1-4.el7.noarch.rpm'

Actual results:

<pre>
lrwxrwxrwx. 1 apache apache 137 May 8 17:45 /var/www/pub/yum/https/repos/dev-epel-7-x86_64/Packages/p/python2-markdown-2.4.1-4.el7.noarch.rpm -> /var/lib/pulp/content/units/rpm/54/a8b444eca08f471ef257f60107bb20f1bc2ce0ca34defff10cfa7c4a89d5e5/python2-markdown-2.4.1-4.el7.noarch.rpm

ls -l /var/lib/pulp/content/units/rpm/54/a8b444eca08f471ef257f60107bb20f1bc2ce0ca34defff10cfa7c4a89d5e5/python2-markdown-2.4.1-4.el7.noarch.rpm
ls: cannot access /var/lib/pulp/content/units/rpm/54/a8b444eca08f471ef257f60107bb20f1bc2ce0ca34defff10cfa7c4a89d5e5/python2-markdown-2.4.1-4.el7.noarch.rpm: No such file or directory

10.222.253.xx - - [08/May/2019:18:30:59 +0000] "GET /pulp/repos/general-prod-epel-7-x86_64/Packages/p/python2-markdown-2.4.1-4.el7.noarch.rpm HTTP/1.1" 302 -

10.222.253.xx - - [08/May/2019:18:31:00 +0000] "GET /streamer/var/lib/pulp/content/units/rpm/54/a8b444eca08f471ef257f60107bb20f1bc2ce0ca34defff10cfa7c4a89d5e5/python2-markdown-2.4.1-4.el7.noarch.rpm?policy=eyJleHRlbnNpb25zIjogeyJyZW1vdGVfaXAiOiAiMTAuMjIyLjI1My4zMSJ9LCAicmVzb3VyY2UiOiAiL3N0cmVhbWVyL3Zhci9saWIvcHVscC9jb250ZW50L3VuaXRzL3JwbS81NC9hOGI0NDRlY2EwOGY0NzFlZjI1N2Y2MDEwN2JiMjBmMWJjMmNlMGNhMzRkZWZmZjEwY2ZhN2M0YTg5ZDVlNS9weXRob24yLW1hcmtkb3duLTIuNC4xLTQuZWw3Lm5vYXJjaC5ycG0iLCAiZXhwaXJhdGlvbiI6IDE1NTczNDAzNTB9;signature=A3sIQRBfSxuDfMqQunLrqkqXNpgV1PxXwhYFP44daSsPVlGd2zvEsYYy_ur5FFYt-5NWDA1DfVtjynI8u5vdCygm26y8xJ6fqoJw70vGjOA6Zp-_9chzdyrTemNG8LGx2r1L_798HCT9k5F8g8FktlYxdrm2trO7IHJpiZAwlhR8qHqTwMBldx3LBVcRS1MvJVdN5EkPQBttAQpd9OnYKTelEDHpe3Tjk7M2GLjshc1bTpFH0y4W-2NYGoX7_aDYJg5d6YCmogVQpri-IsfjLV0EwalGo_dpOm4_dMfX1Q54ckUx40Zj5ne2bfFTWbh26Hiizd1CC0fptPuAs3--lQ%3D%3D HTTP/1.1" 404

</pre>

Expected results:
HTTP status code 200

Additional info:

in /var/log/messages

<pre>
May 8 22:42:17 ip-10-222-253-xx pulp_streamer: pulp.streamer.server:INFO: Download failed [404]: http://epel.mirrors.ovh.net/epel/7/x86_64/Packages/p/python2-markdown-2.4.1-4.el7.noarch.rpm
May 8 22:42:17 ip-10-222-253-xx pulp_streamer: pulp.streamer.server:ERROR: All download attempts failed: /var/lib/pulp/content/units/rpm/54/a8b444eca08f471ef257f60107bb20f1bc2ce0ca34defff10cfa7c4a89d5e5/python2-markdown-2.4.1-4.el7.noarch.rpm

May 8 22:42:17 ip-10-222-253-xx pulp_streamer: [-] 127.0.0.1 - - [08/May/2019:22:42:16 +0000] "GET /var/lib/pulp/content/units/rpm/54/a8b444eca08f471ef257f60107bb20f1bc2ce0ca34defff10cfa7c4a89d5e5/python2-markdown-2.4.1-4.el7.noarch.rpm HTTP/1.1" 404 - "-" "urlgrabber/3.10 yum/3.4.3"
</pre>

Back