Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#459: Upgrading k8s yb cluster fails when bind address is private ip …
…of pod. Summary: We wanted to use the public/broadcast address or hostname even if private ip changes (in kubernetes setup). The API for this, `UsePublicIp`, was missing a check to return true when `use_private_ip` is set to `never`. Test Plan: Tested via the following steps: - Added 127.0.0.1 as node1, and same for 2 & 3, in /etc/hosts. - Then started masters of a local RF=3 cluster (on Mac) using: ~/code/yugabyte/build/latest/bin/yb-master --webserver_interface 127.0.0.1 --rpc_bind_addresses=127.0.0.1 --server_broadcast_addresses=node1:7100 --master_addresses node1:7100,node2:7100,node3:7100 --fs_data_dirs "/tmp/yblocal1/" >& /tmp/yb-master_1.out & - Killed 3rd master. - Remapped node3 in /etc/hosts to 127.0.0.4. - Restarted yb-master with 127.0.0.4 for rpc/web addresses, but with node3 in broadcast. Ensured the new node became a follower in the quorum. Repeated the same with yb-tserver, but ran into an issue - tracked in #461. Reviewers: bogdan, sergei, karthik Reviewed By: karthik Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D5428
- Loading branch information