-
Notifications
You must be signed in to change notification settings - Fork 484
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
[Core Metadata] Handle plugged devices moving from one node to another node #4694
Comments
I think this feasture should be handled by the individual Device Service. If it detects any device is un-plugged, it can send a delete device request to core-metadata. Also, we have implemented the update callback support to switch device service |
@cloudxxx8 , I agree that would be the best approach, but not all protocols notify when the device has been disconnected, The only way would be for the service to periodically (often) check if the device is still connected. Could be done as part of the discovery, but then discovery would have to be run often to detect removed device. I think this one is a good topic for Odessa planning. |
Since the old device service should also be notified, there are two approaches:
|
The force option is the easier way to do. |
Resolves edgexfoundry#4694. Add the force query param to add device metadata API. Signed-off-by: Lindsey Cheng <[email protected]>
* feat: Add the force query param to add device metadata API Resolves #4694. Add the force query param to add device metadata API. Signed-off-by: Lindsey Cheng <[email protected]> * fix: Rename forceAddDevice func to update Device - Rename forceAddDevice func to update Device - Publish update device system event for force add Signed-off-by: Lindsey Cheng <[email protected]> --------- Signed-off-by: Lindsey Cheng <[email protected]>
🚀 Feature Request
Relevant Package [REQUIRED]
This feature request is for Core MetadataDescription [REQUIRED]
Unable to successfully add device for USB camera when the camera is unplugged from Node A and plugged into Node B. Device USB Camera on Node B will get an error attempting to add the device for the camera when it discovers it. This is because a device with that name already exists in Core Metadata and is owned by Device USB Camera on Node A. i.e. the device doesn't get deleted when the camera is unplugged from Node A.This issue is applicable to any devices that are plugged in and can be removed and plugged into a different node.
Describe the solution you'd like
One possible solution would be to add the `force` option on the Add Device Request and for the Device SDK to set this to `true` when adding devices that are auto provisioned.Describe alternatives you've considered
Have you considered any alternative solutions or workarounds?The text was updated successfully, but these errors were encountered: