-
Notifications
You must be signed in to change notification settings - Fork 78
gnoi/factory_reset: add Decommission RPC #301
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: main
Are you sure you want to change the base?
Conversation
add RPC to allow network operator to perform decommission of the device.
Pull Request Test Coverage Report for Build 17272350828Details
💛 - Coveralls |
| // To facilitate a response being returned to the caller, the reboot | ||
| // component of this RPC is asynchronous and will run after the RPC | ||
| // has returned a DecommissionResponse. | ||
| rpc Decommission(DecommissionRequest) returns (DecommissionResponse); |
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.
I am not understanding the use case here
does this imply the device will actually no longer try to secure boot as well?
I am not seeing how this significantly different than just the Start with at most a new parameter?
Does this API actually have a different "caller" set which would make it at least a different auth requirement?
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.
why not augment the Start RPC instead?
| message DecommissionRequest{ | ||
| // Time (in nanoseconds) that the Target should | ||
| // wait before issuing the reboot to complete the decommission. | ||
| // If unset, the Target will assume a default of 15000000000 (15 seconds) |
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.
How the delay is calculated?
- from the time the target has received a request (which implies that the entire operation takes <=15 seconds by default), or
- from the time the target completed prep. steps and is ready to undergo a reboot?
If it's the former, I'd suggest removing the fixed default value, since the procedure can require more than 15 seconds of execution on the target device.
add RPC to allow network operator to
perform decommission of the device.