[JUJU-3472] Lxd cert validation bug #15416
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A change introduced to Juju introduced the concept of re-using the HTTP client for LXD connections to multiple different servers. The LXD client however when passed it's own http server modifies the transport for the http client. This causes the same http client to keep having it's transport modified for different connections.
The result is that https validation fails for some lxd remotes because the transport is configured for a different server.
Checklist
If an item is not applicable, use
~strikethrough~
.QA steps
To test this properly you need to LXD clouds (not the same cloud added twice) to the controller.
one
one
two
using the cloud created in step 4two
model.If everything work you will receive no error messages about x509 certs. If it's failing the controller model will fail to be destroyed because the http client was setup for the
two
model and the x509 certs will fail.Documentation changes
N/A
Bug reference
https://bugs.launchpad.net/juju/+bug/2003135