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

Cover learners with e2e tests #13919

Open
serathius opened this issue Apr 10, 2022 · 16 comments
Open

Cover learners with e2e tests #13919

serathius opened this issue Apr 10, 2022 · 16 comments

Comments

@serathius
Copy link
Member

Based on #13837 I expect we are missing some e2e testing.

@bobsongplus
Copy link

@serathius would be ok if I work on this?

@serathius
Copy link
Member Author

Sure, to give you some context, most of etcd e2e tests either run 1 or 3 member cluster. Most test scenarios would benefit if we add a case where there is an additional learner in cluster. For examples of test code I would look into code in tests/common.

@bobsongplus
Copy link

Working on it

@stale
Copy link

stale bot commented Jul 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 13, 2022
@serathius
Copy link
Member Author

@TinySong any progress?

@halegreen
Copy link
Contributor

want to work on this issue

@pacoxu
Copy link
Contributor

pacoxu commented Oct 13, 2023

kubeadm using etcd learner mode to join the control plane node.

@Elbehery
Copy link
Member

Elbehery commented Jan 4, 2024

@jmhbnz can u assign me please ?

@jmhbnz
Copy link
Member

jmhbnz commented Jan 4, 2024

Absolutely! Thanks for volunteering 🙏🏻

/assign @Elbehery

@Elbehery
Copy link
Member

Hello @serathius

I need more context to resolve this, below are initial ideas

i am quiet lost, where to start .. also could you inline some specific cases to cover ?

thanks :)

cc @ahrtr @jmhbnz

@serathius
Copy link
Member Author

@Elbehery we would want to add learners to basic e2e tests scenarios that should not care that there is a learner in the cluster. Take a look into https://github.com/etcd-io/etcd/blob/main/tests/common/e2e_test.go on how we automatically generate subtests for different cluster configurations.

@Elbehery
Copy link
Member

Thanks @serathius for your response ..

I reviewed the tests yesterday .. So for example, for https://github.com/etcd-io/etcd/blob/main/tests/common/member_test.go, we should add a test that adds a learner member ?

also to create an etcd learner member server process, do i follow the same EtcdServerProcessConfig while adding a boolean for IsLearner ?

wdyt ?

@serathius
Copy link
Member Author

I reviewed the tests yesterday .. So for example, for https://github.com/etcd-io/etcd/blob/main/tests/common/member_test.go, we should add a test that adds a learner member ?

I think there already exists a test for adding a learner member.

func TestCtlV3MemberAddAsLearner(t *testing.T) { testCtl(t, memberAddAsLearnerTest) }

Context on why we have two directories with tests #13637

@serathius
Copy link
Member Author

Any progress @Elbehery ?

@Elbehery
Copy link
Member

No .. would you have sometime for a call to discuss it ?

@serathius
Copy link
Member Author

You can reach me on K8s slack https://communityinviter.com/apps/kubernetes/community

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

No branches or pull requests

6 participants