Skip to content
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

[3.5] backport support dynamically adding & starting new member #17437

Open
wants to merge 3 commits into
base: release-3.5
Choose a base branch
from

Conversation

YaoC
Copy link
Contributor

@YaoC YaoC commented Feb 16, 2024

Backport of PR #14589

Align the patchArgs method with that in the main branch since the initial-cluster-state flag is added as a default argument. #17123 (comment)

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@k8s-ci-robot
Copy link

Hi @YaoC. Thanks for your PR.

I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@ahrtr
Copy link
Member

ahrtr commented Feb 18, 2024

/ok-to-test

@YaoC
Copy link
Contributor Author

YaoC commented Feb 20, 2024

/cc @ahrtr @serathius
PTAL, thanks!

biosvs and others added 3 commits February 20, 2024 10:16
Rebased this PR. There is no response from the original author,
so Benjamin (ahrtr@) continue to work on this PR.

Signed-off-by: Vitalii Levitskii <vitalii@uber.com>
Signed-off-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: YaoC <chengyao09@hotmail.com>
…w member

Signed-off-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: YaoC <chengyao09@hotmail.com>
Signed-off-by: YaoC <chengyao09@hotmail.com>
@YaoC YaoC force-pushed the backport-14589-to-release-3.5 branch from 26380a9 to 50c26f5 Compare February 20, 2024 10:19
@YaoC
Copy link
Contributor Author

YaoC commented Feb 21, 2024

/retest

@ahrtr
Copy link
Member

ahrtr commented Feb 21, 2024

I am a little confused, the comment #17123 (comment) is suggesting to backport #16707, but this PR is backporting #14589. What did I miss?

@YaoC
Copy link
Contributor Author

YaoC commented Feb 21, 2024

I am a little confused, the comment #17123 (comment) is suggesting to backport #16707, but this PR is backporting #14589. What did I miss?

Backport #16707 may not work here, since func values does not return the flag --initial-cluster-state, which is not in func AddFlags. While #14589 explicitly specifies the flag --initial-cluster-state.

From: peerAdvertiseUrl,
}
}
func (cfg *EtcdServerProcessConfig) SetInitialCluster(nodes []string, initialClusterState string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation seems to be different from the main branch. There is no SetInitialCluster. Instead it's SetInitialOrDiscovery.

Also the implementation of EtcdServerProcessConfig is also a little different from the main branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that the PR #14589 is to extract the part originally in the for-loop as a new method EtcdServerProcessConfig . Then, using this method, we can create a config and dynamically add new members to the cluster. As for the implementation itself, it needs to backport some other PRs to align.

SetInitialOrDiscovery is also the same reason, discovery was introduced by a530745, so I removed discovery from the method.

I can pause this PR first and align the content of EtcdServerProcessConfig and discovery. What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can pause this PR first

OK

align the content of EtcdServerProcessConfig and discovery.

Not fully understood your point. but happy to have more discuss under your new PR.

@k8s-ci-robot
Copy link

PR needs rebase.

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-sigs/prow repository.

@k8s-ci-robot
Copy link

@YaoC: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-etcd-smoke-4-cpu-arm64 50c26f5 link true /test pull-etcd-smoke-4-cpu-arm64

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-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants