maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01899
You can't use the REST API from PServ
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.
Follow ups