-
Notifications
You must be signed in to change notification settings - Fork 195
restart the device plugin if NotifyRegistrationStatus returns failure #600
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
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 14307870838Details
💛 - Coveralls |
Today it only logs and stop the rpc server. The plugin hangs after that. Signed-off-by: Yuan Liu <[email protected]>
|
@adrianchiris I wonder if you can take a quick look of this PR? it should be a small fix |
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.
LGTM
|
I re-open to trigger the CI system again @adrianchiris when you have time please take a look on this one |
| } else { | ||
| glog.Infof("Plugin: %s failed to be registered at Kubelet: %v; restarting.\n", rs.endPoint, regstat.Error) | ||
| rs.grpcServer.Stop() | ||
| glog.Fatalf("Plugin: %s failed to be registered at Kubelet: %v; restarting.\n", rs.endPoint, regstat.Error) |
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.
im not sure im OK with logging a msg then panic,
maybe we need some way to signal errors and exit gracefully ?
what others think of this ?
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.
sure we can switch to log.err and exit 1 or something like that
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.
isn't log.Fatal the same as log and exit 1?
Today it only logs and stop the rpc server. The plugin hangs after that.