[BGPCEP-266] HTTP 500 when removing RIB config through RESTCONF Created: 05/Aug/15  Updated: 03/Mar/19  Resolved: 10/Aug/15

Status: Resolved
Project: bgpcep
Component/s: BGP
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Dana Kutenicsova Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File 500.log    
External issue ID: 4095

 Description   

Tested: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf/0.4.0-SNAPSHOT/distribution-karaf-0.4.0-20150805.055320-983.tar.gz

Steps to reproduce:
1. Configure RIB through RESTCONF as in: https://wiki.opendaylight.org/view/BGP_LS_PCEP:User_Guide#RIB_2
2. Issue DELETE on http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/config:modules/module/odl-bgp-rib-impl-cfg:rib-impl/example-bgp-rib

Hits HTTP 500 error. TRACE logs from bgpcep attached.



 Comments   
Comment by Dana Kutenicsova [ 05/Aug/15 ]

Attachment 500.log has been added with description: logs

Comment by Claudio David Gasparini [ 10/Aug/15 ]

This is not a bug since the behavior is the expected by restconf.
Restconf wont allow the user to remove the module as long as there is some dependency over it.
The first to notice is that if the RIB module used were the same as the example, there is no change applied over the already existing RIB-example. Which already is configured, where topology-examples, and services.. having it as a dependency . Therefore in case we want to remove the module, first we need to remove the modules of example topology (ipv6, ipv4, linkstate).. as any service..and then, we will be able to remove it.

Other way to test it, is to use the same example RIB module but changing the name, as soon as we put we will be able to remove it without any issue.

Comment by Dana Kutenicsova [ 10/Aug/15 ]

Correct, good catch.

Generated at Wed Feb 07 19:12:31 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.