[katello-devel] Changes in the API

Lukas Zapletal lzap at redhat.com
Fri Jan 20 11:50:12 UTC 2012


Pushed a fix

4517772 perms - fake /api/packages/ path for rhsm

We report this path but it is not there in real.

LZ

On Thu, Jan 19, 2012 at 06:09:34PM -0500, Eric Helms wrote:
> Lukash,
> 
> I was having issues with getting the package profile from a consumer that was registered to Katello through subscription-manager.  After some digging here is what I found as it relates to these API changes.
> 
> After registering, subscription-manager does the get on /katello/api after which the rhsm.log shows:
> 
> 012-01-18 08:05:03,165 [INFO]  @cache.py:209 - Server does not support packages, skipping profile upload.
> 
> This appears to occur because previously packages was a top level API object and thus had an entry in the hash sent by the /katello/api request. Now that packages is nested under repositories, it no longer appears in the hash causing subscription-manager to look for the existence of a "packages" entry in line 209 of cache.py and spits out the above error if it cannot find it and thus never uploads the package profile.
> 
> 
> Thanks,
> Eric
> 
> ----- Original Message -----
> From: "Lukas Zapletal" <lzap at redhat.com>
> To: katello-devel at redhat.com
> Sent: Tuesday, January 17, 2012 8:54:44 AM
> Subject: [katello-devel] Changes in the API
> 
> Hello,
> 
> finishing with permissions implementation for all our API calls today.
> Please note everything (except proxies - I will work on them soon) is
> now protected. If you run into any permission issues when using CLI or
> API, raise a bug.
> 
> I will also work on the current buzillas that has been filled already.
> They are hopefully all solved now.
> 
> There are some changes in the API:
> 
> /templates/id -> /environments/env_id/templates
> /errata/id -> /repositories/repo_id/errata
> /distributions/id -> /repositories/repo_id/distributions
> /packages/id -> /repositories/repo_id/packages
> 
> The last three are not pushed yet, working on them right now.
> 
> Also, if you add a new controller or action, please implement
> permission rules for it.
> 
> Thanks
> 
> -- 
> Later,
> 
>  Lukas Zapletal | E32E400A
>  RHN Satellite Engineering
>  Red Hat Czech s.r.o. Brno
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel

-- 
Later,

 Lukas Zapletal | E32E400A
 RHN Satellite Engineering
 Red Hat Czech s.r.o. Brno




More information about the katello-devel mailing list