Like the deployer API, the provisioner API also
needs to provider StateAddresses(), APIAddresses(),
and CACert(), so we can use the up-to-date (not
localhost) addresses in NewAPIAuthenticator().
This is needed, because the addresses we get
from agent config are incorrect (use localhost),
and without this CL neither containers nor
machines can't connect to state/API server
at provisioning.
Affected files (+167, -11 lines):
A [revision details]
M state/api/provisioner/provisioner.go
M state/api/provisioner/provisioner_test.go
M state/apiserver/provisioner/provisioner.go
M state/apiserver/provisioner/provisioner_test.go
M worker/provisioner/authentication.go
M worker/provisioner/provisioner.go
Reviewers: mp+187719_ code.launchpad. net,
Message:
Please take a look.
Description:
api/provisioner: Addresses/CACert methods added
Like the deployer API, the provisioner API also ator().
needs to provider StateAddresses(), APIAddresses(),
and CACert(), so we can use the up-to-date (not
localhost) addresses in NewAPIAuthentic
This is needed, because the addresses we get
from agent config are incorrect (use localhost),
and without this CL neither containers nor
machines can't connect to state/API server
at provisioning.
https:/ /code.launchpad .net/~dimitern/ juju-core/ 146-apiprovisio ner-addresses/ +merge/ 187719
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13963043/
Affected files (+167, -11 lines): provisioner/ provisioner. go provisioner/ provisioner_ test.go /provisioner/ provisioner. go /provisioner/ provisioner_ test.go provisioner/ authentication. go provisioner/ provisioner. go
A [revision details]
M state/api/
M state/api/
M state/apiserver
M state/apiserver
M worker/
M worker/