We are trying to bootstrap Juju onto another machine in the MAAS cloud but are getting a "ERROR could not access file
*-provider-state gomaasapi: got error back from server: 403 forbidden." error.
When we run
juju bootstrap a .jenv file is created and this error is returned with the * in the '*-provider-state' replaced by the Juju Agent Name of the MAAS node. When we delete the environment (by deleting the .jenv file), the same error is returned but filename just listed jsut as 'provider-state'. The node does not move into Allocated state even if the .jenv file is created. Running anything - juju bootstrap, juju status, juju destroy-environment, gives the same error.
Backstory: There used to be a bootstrapped Juju environment existing on this MAAS server previously. We had to change our network configurations, and couldn't get the allocated node to be deleted. So, we thought we could unistall juju and start over. Clearly, it didn't work and there are some links left of it still on our server. How do we get rid of it? We did get the allocated node deleted using the maas shell but this error still persists.
We are running MAAS 12.04 LTS, Juju 1.16.