-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1812584: clustermembercontroller: skip if member found with hostname #247
Conversation
/retest |
pkg/etcdcli/etcdcli.go
Outdated
@@ -247,7 +247,7 @@ func (g *etcdClientGetter) GetMember(name string) (*etcdserverpb.Member, error) | |||
return nil, err | |||
} | |||
for _, m := range members { | |||
if m.Name == name { | |||
if strings.Contains(m.Name, name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the wrong fix. Have a FuzzyMatchDeprecated43_memberName
or some such method. Don't break this method.
d65967d
to
6dc113b
Compare
ffb794c
to
d0caf8b
Compare
case err != nil: | ||
return nil, err | ||
default: | ||
klog.Infof("skipping unready pod %q because it is already an etcd member: %#v with hostname: %s", pod.Name, etcdMember, pod.Spec.Hostname) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this be constantly printed in the upgrade cases? if so, V(4)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it will only be temporary and very rare to find. Can still push it to V(4)
d0caf8b
to
b882530
Compare
/lgtm |
/hold walking through with @hexfusion to vet if this will work |
In 4.3 the etcd member name was populated as the hostname from discovery init container.During upgrade cluster member controller should not add a member with <node-name> if a member with <hostname> is running.
b882530
to
a5a2477
Compare
0db68e6
to
a5a2477
Compare
@alaypatel07: This pull request references Bugzilla bug 1812584, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/hold canel |
/retest |
/skip |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alaypatel07, deads2k, hexfusion The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
continued on #253 |
@alaypatel07: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
In 4.3 the etcd member name was in the form of etcd-member-.
During upgrade cluster member controller should not add a member with
if etcd-member- is running.