• Malte Starostik's avatar
    Fix URL pruning when joining an etcd member · 389cd740
    Malte Starostik authored
    * Fix URL pruning when joining an etcd member
    
    Problem:
    Existing member clientURLs were checked if they contain the joining
    node's IP. In some edge cases this would prune valid URLs when the
    joining IP is a substring match of the only existing member's IP.
    Because of this, it was impossible to e.g. join 10.0.0.2 to an existing
    node that has an IP of 10.0.0.2X or 10.0.0.2XX:
    
    level=fatal msg="starting kubernetes: preparing server: start managed database:
    joining etcd cluster: etcdclient: no available endpoints"
    
    Solution:
    Fixed by properly parsing the URLs and comparing the IPs for equality
    instead of substring match.
    Signed-off-by: 's avatarMalte Starostik <info@stellaware.de>
    (cherry picked from commit b23955e8)
    Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
    389cd740
Name
Last commit
Last update
..
agent Loading commit data...
apiaddresses Loading commit data...
apis/k3s.cattle.io Loading commit data...
authenticator Loading commit data...
bootstrap Loading commit data...
cli Loading commit data...
clientaccess Loading commit data...
cloudprovider Loading commit data...
cluster Loading commit data...
codegen Loading commit data...
configfilearg Loading commit data...
containerd Loading commit data...
ctr Loading commit data...
daemons Loading commit data...
datadir Loading commit data...
dataverify Loading commit data...
deploy Loading commit data...
etcd Loading commit data...
flock Loading commit data...
generated Loading commit data...
kubectl Loading commit data...
netutil Loading commit data...
node Loading commit data...
nodeconfig Loading commit data...
passwd Loading commit data...
rootless Loading commit data...
rootlessports Loading commit data...
server Loading commit data...
servicelb Loading commit data...
static Loading commit data...
token Loading commit data...
untar Loading commit data...
util Loading commit data...
version Loading commit data...