Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
agent: set state password with serving info #8065
Conversation
wallyworld
approved these changes
Nov 14, 2017
I think this is ok - don't fully get the subtle agent config intricacies. Good to remove code.
We can remove common.StateAddresser entirely. IIANM, the only other place it is embedded is in the agent provisioner facade, but it's not used, just in tests.
Not yet, it's still used in the controller/authentication package. I should be able to remove it in the refactoring branch, after merging this in. |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju |
axw commentedNov 14, 2017
Description of change
When an agent config has state serving info,
ensure it also has a state password set by
copying it from the API details.
Also, don't accept state addresses, as they're
not used. We'll keep them in the on-disk
format for reading in in case the stateport
attribute is missing, in which case there
is code to deduce from the state addresses.
The deployer facade's StateAddresses method
has been removed. This was done without
bumping the facade or retaining backwards
compatibility, since no version from 2.0 on
ever used that method.
QA steps
(check that there are no panics; additional controllers won't come online as they do not initialise the replicaset)
Documentation changes
None
Bug reference
Partially fixes https://bugs.launchpad.net/juju/+bug/1642618