[Pulp-list] CLI Authentication question

Heide, Todd Todd.Heide at sccompanies.com
Fri May 29 15:21:53 UTC 2020


I finally got it installed and it appears to be working now. Thanks for point out what I was missing.   Now to figure out how to use it. 

HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 5,
    "next": null,
    "previous": null,
    "results": [
        {
            "pulp_href": "/pulp/api/v3/repositories/file/file/6fd137ed-ad95-4f77-bf62-77c10a9b352d/",
            "pulp_created": "2020-05-29T15:07:48.416957Z",
            "versions_href": "/pulp/api/v3/repositories/file/file/6fd137ed-ad95-4f77-bf62-77c10a9b352d/versions/",
            "latest_version_href": "/pulp/api/v3/repositories/file/file/6fd137ed-ad95-4f77-bf62-77c10a9b352d/versions/0/",
            "name": "Katello",
            "description": null
        },
        {
            "pulp_href": "/pulp/api/v3/repositories/file/file/c7eebee7-a8e8-46be-83b0-c0ad9097cdc7/",
            "pulp_created": "2020-05-29T15:07:22.279021Z",
            "versions_href": "/pulp/api/v3/repositories/file/file/c7eebee7-a8e8-46be-83b0-c0ad9097cdc7/versions/",
            "latest_version_href": "/pulp/api/v3/repositories/file/file/c7eebee7-a8e8-46be-83b0-c0ad9097cdc7/versions/0/",
            "name": "epel",
            "description": null
        },
        {
            "pulp_href": "/pulp/api/v3/repositories/file/file/b251434d-080b-427d-897e-e144a4f9bb59/",
            "pulp_created": "2020-05-29T15:04:14.556340Z",
            "versions_href": "/pulp/api/v3/repositories/file/file/b251434d-080b-427d-897e-e144a4f9bb59/versions/",
            "latest_version_href": "/pulp/api/v3/repositories/file/file/b251434d-080b-427d-897e-e144a4f9bb59/versions/0/",
            "name": "Centos7-updates-x86_64",
            "description": null
        },
        {
            "pulp_href": "/pulp/api/v3/repositories/file/file/ae03b3a5-e6f9-44b8-ad86-abdf4e50b84f/",
            "pulp_created": "2020-05-29T15:03:40.703291Z",
            "versions_href": "/pulp/api/v3/repositories/file/file/ae03b3a5-e6f9-44b8-ad86-abdf4e50b84f/versions/",
            "latest_version_href": "/pulp/api/v3/repositories/file/file/ae03b3a5-e6f9-44b8-ad86-abdf4e50b84f/versions/0/",
            "name": "Centos7-extras-x86_64",
            "description": null
        },
        {
            "pulp_href": "/pulp/api/v3/repositories/file/file/70c2c9dc-1b2e-4feb-94e1-7382f0618d35/",
            "pulp_created": "2020-05-29T14:58:01.154404Z",
            "versions_href": "/pulp/api/v3/repositories/file/file/70c2c9dc-1b2e-4feb-94e1-7382f0618d35/versions/",
            "latest_version_href": "/pulp/api/v3/repositories/file/file/70c2c9dc-1b2e-4feb-94e1-7382f0618d35/versions/0/",
            "name": "Centos7-os-x86_64",
            "description": null
        }
    ]
}


-----Original Message-----
From: pulp-list-bounces at redhat.com <pulp-list-bounces at redhat.com> On Behalf Of Heide, Todd
Sent: Thursday, May 28, 2020 8:07 AM
To: Matthias Dellweg <mdellweg at redhat.com>
Cc: Pulp-list at redhat.com
Subject: Re: [Pulp-list] CLI Authentication question

[EXTERNAL] This message originated outside of the organization. Use caution when opening files or following links in this email!

Huh, ok, I had thought the Ansible would have installed it like before.  OK, thanks, I will get it installed. Was this a recent change with 3.3.1?

-----Original Message-----
From: Matthias Dellweg <mdellweg at redhat.com>
Sent: Thursday, May 28, 2020 7:52 AM
To: Heide, Todd <Todd.Heide at sccompanies.com>
Cc: Daniel Alley <dalley at redhat.com>; Pulp-list at redhat.com
Subject: Re: [Pulp-list] CLI Authentication question

[EXTERNAL] This message originated outside of the organization. Use caution when opening files or following links in this email!

You have only pulp_rpm installed (see the versions part of status).
ISO/file support has moved into the pulp_file plugin.

On Thu, May 28, 2020 at 2:45 PM Heide, Todd <Todd.Heide at sccompanies.com> wrote:
>
> Yes, you are correct, some other items are missing now that it can authenticate, base.sh works now, but other scripts are still not functioning correctly.  PUT and POST are not allowed.
>
> HTTP 200 OK
> Allow: GET, HEAD, OPTIONS
> Content-Type: application/json
> Vary: Accept
>
> {
>     "versions": [
>         {
>             "component": "pulpcore",
>             "version": "3.3.1"
>         },
>         {
>             "component": "pulp_rpm",
>             "version": "3.3.2"
>         }
>     ],
>     "online_workers": [
>         {
>             "pulp_href": "/pulp/api/v3/workers/b46d78d1-7f2a-494c-9055-2e0c29d1e05b/",
>             "pulp_created": "2020-05-21T17:50:01.035050Z",
>             "name": "1751 at aecdas-pulp3test.example.com",
>             "last_heartbeat": "2020-05-28T12:42:18.330629Z"
>         },
>         {
>             "pulp_href": "/pulp/api/v3/workers/97e5731f-1405-4e53-8824-39fed702c2d9/",
>             "pulp_created": "2020-05-21T17:50:02.840377Z",
>             "name": "1872 at aecdas-pulp3test.example.com",
>             "last_heartbeat": "2020-05-28T12:42:20.535613Z"
>         },
>         {
>             "pulp_href": "/pulp/api/v3/workers/fef5826d-62df-4a79-8145-2e4b3495f495/",
>             "pulp_created": "2020-05-21T17:49:41.225878Z",
>             "name": "resource-manager",
>             "last_heartbeat": "2020-05-28T12:42:21.137314Z"
>         }
>     ],
>     "online_content_apps": [
>         {
>             "name": "2252 at aecdas-pulp3test.example.com",
>             "last_heartbeat": "2020-05-28T12:42:23.731799Z"
>         },
>         {
>             "name": "2253 at aecdas-pulp3test.example.com ",
>             "last_heartbeat": "2020-05-28T12:42:30.153881Z"
>         }
>     ],
>     "database_connection": {
>         "connected": true
>     },
>     "redis_connection": {
>         "connected": true
>     },
>     "storage": {
>         "total": 536859357184,
>         "used": 2708668416,
>         "free": 534150688768
>     }
> }
>
> -----Original Message-----
> From: Matthias Dellweg <mdellweg at redhat.com>
> Sent: Thursday, May 28, 2020 4:47 AM
> To: Daniel Alley <dalley at redhat.com>
> Cc: Heide, Todd <Todd.Heide at sccompanies.com>; Pulp-list at redhat.com
> Subject: Re: [Pulp-list] CLI Authentication question
>
> [EXTERNAL] This message originated outside of the organization. Use caution when opening files or following links in this email!
>
> It returns 404, which does not sound like missing credentials. Are you sure, the pulp_file plugin is installed? Can you access and may be post here http://localhost:24817/pulp/api/v3/status/ ?
>
> On Thu, May 28, 2020 at 4:32 AM Daniel Alley <dalley at redhat.com> wrote:
> >
> > Hello Todd,
> >
> > I believe the file you're looking for is ~/.netrc  -- 
> > https://ec.haxx.se/usingcurl/usingcurl-netrc
> >
> > I hope that helps!
> >
> >
> > On Wed, May 27, 2020 at 11:21 AM Heide, Todd <Todd.Heide at sccompanies.com> wrote:
> >>
> >> This is my third attempt at a working Pulp 3 server. I finally got 
> >> the REST Framework working, but, for the life of me, cannot 
> >> remember the hidden file that is used under the CLI user to 
> >> authenticate against the system.  I lost my links recently to docs, 
> >> and cannot remember what the file was called, and I didn't think to 
> >> back it up when I tore the server down.  Good news is, the UI 
> >> appears to be working, and I can log in as admin, but I am not 
> >> seeing where I can post, put, etc.  Trying to set up a repo via CLI 
> >> I get
> >>
> >> http POST
> >> http://localhost:24817/pulp/api/v3/repositories/file/file/
> >> name=foo
> >> HTTP/1.1 404 Not Found
> >> Connection: close
> >> Content-Length: 77
> >> Content-Type: text/html
> >> Date: Wed, 27 May 2020 14:43:01 GMT
> >> Server: gunicorn/20.0.4
> >> X-Frame-Options: SAMEORIGIN
> >>
> >> <h1>Not Found</h1><p>The requested resource was not found on this 
> >> server.</p>
> >>
> >> I'm thinking that the file I am referring to is the key, but I can't find what I am looking for.
> >>
> >>
> >> _______________________________________________
> >> Pulp-list mailing list
> >> Pulp-list at redhat.com
> >> https://www.redhat.com/mailman/listinfo/pulp-list
> >>
> > _______________________________________________
> > Pulp-list mailing list
> > Pulp-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/pulp-list
>


_______________________________________________
Pulp-list mailing list
Pulp-list at redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list





More information about the Pulp-list mailing list