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

Add test that scales masters #317

Merged
merged 4 commits into from
Jun 29, 2017
Merged

Conversation

ktsakalozos
Copy link
Member

This PR tests this issue: https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/311

A potential fix for the above issue is here: kubernetes/kubernetes#48054

self.deployment.sentry.wait()
for master in self.masters:
output, rc = master.run('grep server: /home/ubuntu/config')
self.assertTrue(rc == 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that you add 2 masters here but dont check if the IP matches the recently added units. The test could potentially report a false positive as we aren't checking for the server: key when there are no master units. So what happens if the config just isn't updated? or what if it has the older ip address from the original server? There are two scenarios I can think of that would cause this to pass when the behavior is actually bad.

Copy link
Member Author

Choose a reason for hiding this comment

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

The server IP on the configs should be the IP of the loadbalancer. And you are right that we should make sure the loadbalancer points to the new masters as soon as they come up.

The latest commit does both checks. Thank you.

@tvansteenburgh tvansteenburgh added this to the 2017.07.07 milestone Jun 29, 2017
@tvansteenburgh tvansteenburgh merged commit e764e44 into master Jun 29, 2017
@addyess addyess deleted the feature/test-master-scale branch December 13, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants