SST does not work in default Config

Description

Hello

I'm not sure if I missed something, but:

Ubuntu 18.04  with pxc-80 repo

installed 1st node with default config (beside some changes for memory and a valid gcomm://ip1,ip2,ip3 setting)

bootstrapping it ends up running with

pxc_encrypt_cluster_traffic

ON

ssl_ca

ca.pem

ssl_cert

server-cert.pem

ssl_key

server-key.pem

like mentioned in 

https://www.percona.com/doc/percona-xtradb-cluster/8.0/security/encrypt-traffic.html

unlike those wsrep_provider_options does not show the mentioned 
socket.ssl_key=server-key.pem;socket.ssl_cert=server-cert.pem;socket.ssl_ca=ca.pem

The real problem is more a hen and egg situation on the 2nd node I try to start

I generated the same config (with adjusted wsrep_node_address ... of course)
on node 2 erased /var/lib/mysql/ contents and start it:

Results in
error:04067084:rsa routines:rsa_ossl_public_decrypt:data too large for modulus')
This error is often caused by SSL issues. For more information, please see:
https://per.co.na/pxc/encrypt_cluster_traffic

Of course, no ssl ca, certs, key files on the 2nd node

transfer of those file manually into datadir (the default location) and start 
results in "/var/lib/mysql is not empty" errors

Adding to [mysqld] and [sst]

encrypt=4   # (only in [sst])
ssl-key=/etc/mysql/certs/server-key.pem
ssl-ca=/etc/mysql/certs/ca.pem
ssl-cert=/etc/mysql/certs/server-cert.pem

and coping the generated files from node1 to these location 
reusults in a started 2nd node.

Either the ssl files needs to be generated outside datadir
and the default location adjusted or the SST has to ignore those files in the datadir
or we need a step between setting up 1st node in default config and moving ssl files out of datadir and reconfigure all nodes ... 

Or did I missed something

 

Environment

ubuntu 18-04 
packages from repo

Smart Checklist

Activity

Show:

patrick.birch February 7, 2022 at 2:20 PM

Documentation has already been updated.

Kathy Williamson May 22, 2020 at 1:44 PM

Documentation Modifications to be completed - https://www.percona.com/doc/percona-xtradb-cluster/8.0/configure.html

Replace Step 5 with the following:

- please provide me a sample web page of these changes when completed prior to submitting for application.  Thanks 

Kathy Williamson May 21, 2020 at 12:08 PM

- I will be making changes to this documentation and will let you know to make sure it is what you feel is needed 

Lalit Choudhary May 21, 2020 at 7:02 AM

yes, we already addressed this in the documentation. 

https://jira.percona.com/browse/PXC-3124  

Ref Doc for changes: 

https://www.percona.com/doc/percona-xtradb-cluster/8.0/configure.html

additionally published the same information in a blog post. 

https://www.percona.com/blog/2020/05/18/percona-xtradb-cluster-8-0-behavior-change-for-pxc-encrypt-cluster-traffic/

Hubertus Krogmann May 20, 2020 at 8:55 AM

Hello

Then the documentation should point out this problem as without these steps you don't get a running PXC.
Not all users will search through the blog for helpful articles.

From my point of view it would be better if PXC would generate those ssl files directly in a directory != datadir
and search there per default, but I'm not sure how hard this would be to code as the ssl files generation is probably
something mysql does without being part of a PXC.

Won't Do

Details

Assignee

Reporter

Time tracking

1d 5h 30m logged

Components

Affects versions

Priority

Smart Checklist

Created May 20, 2020 at 7:05 AM
Updated March 6, 2024 at 9:31 PM
Resolved February 7, 2022 at 2:20 PM

Flag notifications