<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 5, 2020 at 10:40 AM Heide, Todd <<a href="mailto:Todd.Heide@sccompanies.com">Todd.Heide@sccompanies.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">New install of 3.3.0 and I can create the repo, <br>
<br>
# http POST <a href="http://localhost:24817/pulp/api/v3/repositories/file/file/" rel="noreferrer" target="_blank">http://localhost:24817/pulp/api/v3/repositories/file/file/</a> name=foo<br>
HTTP/1.1 201 Created<br>
Allow: GET, POST, HEAD, OPTIONS<br>
Connection: close<br>
Content-Length: 376<br>
Content-Type: application/json<br>
Date: Tue, 05 May 2020 14:04:24 GMT<br>
Location: /pulp/api/v3/repositories/file/file/7885baed-b707-4002-b1e1-a98924e39ee5/<br>
Server: gunicorn/20.0.4<br>
Vary: Accept, Cookie<br>
X-Frame-Options: SAMEORIGIN<br>
<br>
{<br>
    "description": null,<br>
    "latest_version_href": "/pulp/api/v3/repositories/file/file/7885baed-b707-4002-b1e1-a98924e39ee5/versions/0/",<br>
    "name": "foo",<br>
    "pulp_created": "2020-05-05T14:04:24.441705Z",<br>
    "pulp_href": "/pulp/api/v3/repositories/file/file/7885baed-b707-4002-b1e1-a98924e39ee5/",<br>
    "versions_href": "/pulp/api/v3/repositories/file/file/7885baed-b707-4002-b1e1-a98924e39ee5/versions/"<br>
}<br>
<br>
Export the repo<br>
# export REPO_HREF=$(http :24817/pulp/api/v3/repositories/file/file/ | jq -r '.results[] | select(.name == "foo") | .pulp_href')<br>
<br>
But when I try to make the distribution it errors 404<br>
<br>
# http POST :24817/pulp/api/v3/distributions/file/file/ name='baz' base_path='mypath' repository=$REPO_HREF``<br>
HTTP/1.1 400 Bad Request<br>
Allow: GET, POST, HEAD, OPTIONS<br>
Connection: close<br>
Content-Length: 35<br>
Content-Type: application/json<br>
Date: Tue, 05 May 2020 14:05:41 GMT<br>
Server: gunicorn/20.0.4<br>
Vary: Accept, Cookie<br>
X-Frame-Options: SAMEORIGIN<br>
<br>
{<br>
    "repository": [<br>
        "Unexpected field"<br>
    ]<br>
}<br>
<br></blockquote><div><br></div><div>FileDsitribution requires a publication not a repository. Instructions for that are here: <a href="https://pulp-file.readthedocs.io/en/latest/workflows/publish-host.html#publish-and-host">https://pulp-file.readthedocs.io/en/latest/workflows/publish-host.html#publish-and-host</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Did something get missed during the install?   I also tried manual distribution, fails at AnsibleRemote<br>
http POST :24817/pulp/api/v3/remotes/ansible/ansible/ name=bar url='<a href="https://galaxy.ansible.com/api/v1/roles/?/" rel="noreferrer" target="_blank">https://galaxy.ansible.com/api/v1/roles/?/</a>?<br>
> namespace__name=elastic'<br>
HTTP/1.1 404 Not Found<br>
Connection: close<br>
Content-Length: 77<br>
Content-Type: text/html<br>
Date: Tue, 05 May 2020 14:23:20 GMT<br>
Server: gunicorn/20.0.4<br>
X-Frame-Options: SAMEORIGIN<br>
<br>
<h1>Not Found</h1><p>The requested resource was not found on this server.</p><br>
<br>
# http POST :24817/pulp/api/v3/distributions/file/file/ name='baz' base_path='dev' repository_version=REPO_VERSION_HREF<br>
HTTP/1.1 400 Bad Request<br>
Allow: GET, POST, HEAD, OPTIONS<br>
Connection: close<br>
Content-Length: 43<br>
Content-Type: application/json<br>
Date: Tue, 05 May 2020 14:24:42 GMT<br>
Server: gunicorn/20.0.4<br>
Vary: Accept, Cookie<br>
X-Frame-Options: SAMEORIGIN<br>
<br>
{<br>
    "repository_version": [<br>
        "Unexpected field"<br>
    ]<br>
}<br>
<br>
The only one that seemed to have done anything is manual distribution. <br>
<br>
# http POST :24817/pulp/api/v3/distributions/file/file/ name='baz' base_path='bar' publication=$PUBLICATION_HREF<br>
HTTP/1.1 202 Accepted<br>
Allow: GET, POST, HEAD, OPTIONS<br>
Connection: close<br>
Content-Length: 67<br>
Content-Type: application/json<br>
Date: Tue, 05 May 2020 14:35:20 GMT<br>
Server: gunicorn/20.0.4<br>
Vary: Accept, Cookie<br>
X-Frame-Options: SAMEORIGIN<br>
<br>
{<br>
    "task": "/pulp/api/v3/tasks/4c752d6b-9102-4105-b84c-7b523439914a/"<br>
}<br>
<br>
<br>
So out of the three on this page, <a href="https://docs.pulpproject.org/workflows/exposing-content.html" rel="noreferrer" target="_blank">https://docs.pulpproject.org/workflows/exposing-content.html</a> the only one to work is manual distribution of a publication. I can view and download from the web page.   Did I miss a plugin or a configuration somewhere? <br>
<br></blockquote><div><br></div><div>A File repository version contains all the files. However, File publications always include a manifest file that lists all the files and checksums for those files. The manifest is generated only when a publication is created from a repository version. <br></div><div><br></div><div>RPM repositories work the same way and always require generating a publication first also. <br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
<br>
</blockquote></div></div>