[katello-devel] Retrieving "listing" files from pulp

Tom McKay thomasmckay at redhat.com
Thu Oct 18 11:47:36 UTC 2012



----- Original Message -----
> From: "Ivan Nečas" <inecas at redhat.com>
> To: katello-devel at redhat.com
> Sent: Thursday, October 18, 2012 4:20:11 AM
> Subject: Re: [katello-devel] Retrieving "listing" files from pulp
> 
> On 10/17/2012 08:58 PM, Tom McKay wrote:
> > Working on a BZ [1] where the available releases are not being
> > displayed in subscription-manager. These are fetched from the CDN,
> > which in the case of katello is pulp, via the /listing files
> >
> > /content/dist/rhel/server/6/listing
> > 6.1
> > 6.2
> > 6.3
> > 6Server
> >
> > This is what sub-mgr is effectively doing:
> >
> > %  curl --stderr /dev/null --insecure --tlsv1 --cert
> > /etc/pki/entitlement/1203469290095408448.pem --key
> > /etc/pki/entitlement/1203469290095408448-key.pem
> > https://se-rhelbox.usersys.redhat.com/pulp/repos/Test_Org_1349760599/Dev//content/dist/rhel/server/5/listing
> >
> > But this results in a 403.
> >
> > A second issue is that there are no listing files at all in the
> > pulp repos. ie. server/5/listing does not exist compared to what's
> > in production and stage cdn.
> That's the issue. Pulp doesn't support listing files. However,
> Katello
> provides the api returning the available releases. [1]
> 
> [1] - http://www.katello.org/apidoc/environments/releases.html

This will not work. subscription-manager does not call through katello to get the available releases, but instead hits the CDN directly. So, unless it's possible to catch the calls to /pulp/repos and pass it to katello, there is no work-around for this.

Yes, there is a disconnect between what the user will see through subscription-manager and what katello offers up as available releases through its UI/CLI. Katello only shows the releases that have been promoted to the environment the system is registered to. Subscription-manager shows the releases that match the systems installed products.

> 
> -- Ivan
> >
> > Help?
> >
> > [1] https://bugzilla.redhat.com/show_bug.cgi?id=832118
> >
> > _______________________________________________
> > katello-devel mailing list
> > katello-devel at redhat.com
> > https://www.redhat.com/mailman/listinfo/katello-devel
> 
> 
> --
> Ivan
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel
> 




More information about the katello-devel mailing list