I’m trying to add 1 read replica on a west region to an existing yugabyte cluster in east coast region.
I generated the certicate on the master node for the new ip replica, on master host is xx.xx.xx.96.
/opt/yugabyte//bin/yugabyted cert generate_server_certs --hostnames=xx.xx.xx.46
I copy the certs to the replica certs dir and tried to started the replica the same way I started the other nodes but it errored out.
yugabyted start --secure --certs_dir=/db/yugabyte/certs --cloud_location=xx.xx.rr-1a --base_dir=/db/yugabyte --advertise_address=xx.xx.xx.46 --join=xx.xx.xx.96 --fault_tolerance=region
On the master, I ran the yb-admin command :
/opt/yugabyte/bin/yb-admin --certs_dir_name /db/yugabyte/certs --master_addresses xx.xx.xx.96:7100,xx.xx.xx.101:7100,xx.xx.xx.93:7100 add_read_replica_placement_info xx.xx.rr-1a:1 1 rr
Fetching configs from join IP...
Starting yugabyted...
/ Starting the YugabyteDB Processes...Failed to setup master. Exception: Traceback (most recent call last):
File "/opt/yugabyte/bin/yugabyted", line 4565, in setup_master
master_uuids = retry_op_with_argument(self.get_master_uuids, master_addrs)
The log has reference the list_all_masters command and looks like it could not run this command.
[yugabyted start] INFO: | 189.5s | run_process: ['/opt/yugabyte-2024.1.1.0/bin/yb-admin', '--certs_dir_name=/db/yugabyte/certs',
'--master_addresses', 'xx.xx.xx.96:7100,xx.xx.xx.101:7100,xx.xx.xx.93:7100', 'list_all_masters'] timeout expired for command:
[yugabyted start] 2024-11-06 14:54:07,450 ERROR: | 189.5s | Failed to setup master. Exception: Traceback (most recent call last):
If I run on the replica the list_all_masters command:
Timed out (yb/rpc/rpc.cc:223): Unable to establish connection to leader master at [xx.xx.xx.96:7100,xx.xx.xx.101:7100,xx.xx.xx.93:7100]. Please verify the addresses and check if server is up,
or if you're missing --certs_dir_name.
: Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.29.196.96:7100, 10.29.196.101:7100, 10.161.129.93:7100], num_attempts: 249) passed its deadline 15146.954s
(passed: 60.031s): Network error (yb/rpc/secure_stream.cc:914): Handshake failed: Network error (yb/rpc/secure_stream.cc:1129): Unverified certificate: certificate signature failure,
address: xx.xx.xx.101, hostname: xx.xx.xx.101