[Maas-devel] You can't use the REST API from PServ
Graham Binns
graham.binns at canonical.com
Wed Aug 27 08:58:12 UTC 2014
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.
More information about the Maas-devel
mailing list