maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01901
Re: You can't use the REST API from PServ
On Wednesday 27 Aug 2014 11:16:28 Gavin Panella wrote:
> On 27 August 2014 10:58, Graham Binns <graham.binns@xxxxxxxxxxxxx> wrote:
> > As Julian has pointed out to me just today:
> >> you cannot use the API in pserv, it never gets sent the API
> >> credentials, which is why for my lease uploading service I added an
> >> RPC to do that. Let's get rid of the API entirely for clusters rather
> >> than being half-assed about it.
> >
> > So, to bullet point that for future use:
> > - You can't use the REST API from pserv (e.g. TimerServices on the
> >
> > cluster, etc.)
> >
> > - If you're converting a celery task to something that runs in pserv,
> >
> > you _must_ convert any REST API calls to RPC calls.
>
> For now the primary goal with RPC is to remove Celery and RabbitMQ
> from the stack, and I think we'd be better served by adding a single
> new RPC call to the region, GetSecrets (say), so we can continue to
> use the API from clusters.
Urgh.....
> There are also some API calls that ship
> more data than can fit in a single RPC payload, so we *need* this
> anyway.
Which ones? Can we talk about how to get them working (multiple paged calls
maybe).
Follow ups
References