Descriptionjuju: cache API endpoints and credentials
Fixes bug #1268471:
1. After the first successful connection to the API,
the endpoints and credentials are cached in the
environment's .jenv file.
2. Cached API connection settings are tried first
when connecting to the API server (if available),
otherwise we failback to using the provider storage
to fetch the provider-state, wait for the instance
DNS address and then use that to connect (slower).
3. After each successful API connection the cache
is updated (in the future we might also fetch all
API server addresses from the server using an API
call, so we can always have up-to-date addresses).
Tested live on EC2 - works like charm and speeds
up all CLI commands quite a bit.
https://code.launchpad.net/~dimitern/juju-core/230-cache-bootstrap-address-1268471/+merge/201593
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 12
Patch Set 2 : juju: cache API endpoints and credentials #
Total comments: 6
Patch Set 3 : juju: cache API endpoints and credentials #
Total comments: 12
Patch Set 4 : juju: cache API endpoints and credentials #
MessagesTotal messages: 9
|