[Maas-devel] You can't use the REST API from PServ
Gavin Panella
gavin.panella at canonical.com
Wed Aug 27 09:16:28 UTC 2014
On 27 August 2014 10:58, Graham Binns <graham.binns at canonical.com> 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. There are also some API calls that ship
more data than can fit in a single RPC payload, so we *need* this
anyway.
More information about the Maas-devel
mailing list