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 event generation when create/delete of balancers fails. #8887

Merged
merged 1 commit into from May 29, 2015

Conversation

brendandburns
Copy link
Contributor

Closes #8760

@thockin
Copy link
Member

thockin commented May 27, 2015

Partial fix for #8760 - we should open another bug to report it in stats.loadBalancer.condition

@@ -206,6 +215,7 @@ func (s *ServiceController) processDelta(delta *cache.Delta) (error, bool) {
case cache.Sync:
err, retry := s.createLoadBalancerIfNeeded(namespacedName, service, cachedService.service)
if err != nil {
s.eventRecorder.Event(service, "creating balancer failed", err.Error())
Copy link
Member

Choose a reason for hiding this comment

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

Nit (because I believe these become part of our contract?): balancer -> loadbalancer ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@justinsb
Copy link
Member

Two nits if events are considered part of our contract (i.e. difficult to change). LGTM though.

Thank you for fixing - I was looking at fixing as part of #8892, but then saw you had implemented this already :-)

justinsb added a commit to justinsb/kubernetes that referenced this pull request May 28, 2015
Once kubernetes#8887 merges this should show errors in load balancer creation.

Even before then, it may show another error.

Bug kubernetes#8892
@brendandburns
Copy link
Contributor Author

@justinsb comments addressed, please re-check.

Thanks!
--brendan

@justinsb
Copy link
Member

LGTM - thanks again!

@brendandburns brendandburns added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 29, 2015
rjnagal added a commit that referenced this pull request May 29, 2015
Add event generation when create/delete of balancers fails.
@rjnagal rjnagal merged commit ae8bc2c into kubernetes:master May 29, 2015
justinsb added a commit to justinsb/kubernetes that referenced this pull request Jul 26, 2015
Once kubernetes#8887 merges this should show errors in load balancer creation.

Even before then, it may show another error.

Bug kubernetes#8892
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should we expose a reason for LoadBalancer creation failure?
5 participants