Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
provider/lxd: cache certs in juju/lxd dir #6903
Conversation
wallyworld
approved these changes
Feb 2, 2017
All that nice new lxd provider code from a day or so ago gone.
| + | ||
| + // Next we look in the LXD config dir, in case the user has | ||
| + // a client certificate/key pair for use with the "lxc" client | ||
| + // application.A |
axw
added some commits
Feb 2, 2017
I like to think that it was replaced with nicer code at least ;) |
|
$$fixes-1661091$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Does not match ['fixes-1660877'] |
|
$$howaboutnow$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Does not match ['fixes-1660877'] |
|
$$JFDI$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
|
$$JFDI$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
axw commentedFeb 2, 2017
Description of change
When bootstrapping LXD, we will now cache the generated credential in ~/.local/share/juju/lxd. This allows us to use the same certificates each time we bootstrap, rather than a fresh one each time. Since we'll only generate one, and upload it once, we no longer need to remove certs on controller destruction.
QA steps
juju bootstrap localhost b
juju bootstrap localhost a
juju add-model foo
juju migrate foo b
(confirm model migrated)
juju destroy-controller -y a
juju destroy-controller -y b
juju bootstrap localhost (with juju 2.0)
juju destroy-controller -y localhost-localhost (with this branch)
juju bootstrap localhost (with juju 2.0)
juju upgrade-juju -m controller (with this branch)
juju destroy-controller -y localhost-localhost (with this branch)
Documentation changes
No change.
Bug reference
Fixes https://bugs.launchpad.net/juju/+bug/1661091