[NETCONF-73] Device delete request returns response before the device removal is fully completed. Created: 25/Sep/15 Updated: 15/Mar/19 Resolved: 25/Sep/15 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jozef Behran | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 4356 |
| Description |
|
When user sends a DELETE request to /restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules/module/odl-sal-netconf-connector-cfg:sal-netconf-connector/$DEVICE_NAME (where $DEVICE_NAME is a name of a device mounted via netconf-connector), the response is sent before the device removal is fully completed. This can be observed by executing a GET request to /restconf/operational/network-topology:network-topology/topology/topology-netconf (the device $DEVICE_NAME will still be mentioned in the returned data). This is most likely going to be a problem as most applications using an API like this assume the device is completely released once a "disconnect" request replies with the OK response. The behavior of netconf breaks this assumption which might cause corruption of the data on the device once the DELETE requestor tries to access the device in a way that is not netconf mount compatible. |
| Comments |
| Comment by Vratko Polak [ 25/Sep/15 ] |
|
My point of view: Presence of device in topology-netconf (as opposed to netconf-connector configutration mounted at controller-config) is an operational consequence, it reflects state detected by netconf-connector. It may be useful to have a blocking request for this type of teardown, but that would be an improvement. For tests, I recommend to WUKS to see device gone from topology-netconf. |
| Comment by Jozef Behran [ 25/Sep/15 ] |
|
ODL needs a feature for the scenario described in this bug. Right now the user is forced to poll the operational state until he sees the device to go away. |