(trunk)PXC-3583: validate-config reports "ssl-ca, ssl-cert, and ssl-key must… #2190
+225
−1
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.
… all be defined to use encrypted mode traffic"
https://perconadev.atlassian.net/browse/PXC-3583
Problem:
validate-config does not work when wsrep is enabled.
Description:
If pxc-encrypt-cluster-traffic=ON, PXC requires socket.ssl_{key,cert,ca}, but these are not yet loaded during validate-config. This causes a false failure: "ssl-ca, ssl-cert and ssl-key must all be defined".
Resolution:
If pxc_encrypt_cluster_traffic is enabled, then it is mandatory to define ssl-ca, ssl-cert, and ssl-key.
However with --validate-config complete initialization is not performed, and skips calling server_main_callback initializer and wsrep_ssl_artifacts_check call, so we need to skip the verification of SSL configuration.
--validate-config option enables the startup configuration to be checked for problems without running the server in operational mode.