[Pulp-list] CLI Authentication question

Matthias Dellweg mdellweg at redhat.com
Thu May 28 13:46:04 UTC 2020


No, it has been like that with starting 3.0.0-dev-alpha1 (or what it
was called back then)

On Thu, May 28, 2020 at 3:06 PM Heide, Todd <Todd.Heide at sccompanies.com> wrote:
>
> 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
> >
>




More information about the Pulp-list mailing list