[VTN-59] VTN Coordinator fails to update the admin_status of the Vbridge Interface in VTN Manager. Created: 26/Feb/15 Updated: 19/Oct/17 Resolved: 12/Mar/15 |
|
| Status: | Resolved |
| Project: | vtn |
| Component/s: | ODC Driver |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | YOGA LAKSHMI SWETHA PAYYAVULA | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2758 |
| Description |
|
Update for the adminstatus in the VBr interface has issues |
| Comments |
| Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 03/Mar/15 ] |
|
Updating the admin status in the Vbr interface. First create the vbr interfaces if1 and if2 and do the portmapping. Now update one of the interfaces as shown below: curl --user admin:adminpass -H 'content-type: application/json' -X PUT -d '{"interface": {"if_name": "if1", "adminstatus" : "disable"}}' http://127.0.0.1:8083/vtn webapi/vtns/vtn1/vbridges/vBridge1/interfaces/if1 After running this command the interface should be disabled and its operstatus should go down, but it doesnot happen so: |
| Comment by Hideyuki Tai [ 03/Mar/15 ] |
|
Manish Kumar detected and reported this bug. |
| Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 04/Mar/15 ] |
|
First get a set-up for vtn manager and coordinator using the example, After this one of the interfaces is disabled by updating the admin status. This should get the operation state of that interface down. The below command is used for this : curl -v --user admin:adminpass -H 'content-type: application/json' -H 'ipaddr:127.0.0.1' -X PUT -d '{"interface": {"if_name": "if1","description": "if_desc1", "adminstatus": "disable"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_one/interfaces/if1.json From the VTN Manager GET command is checked : curl -v --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://localhost:8080/controller/nb/v2/vtn/default/vtns/vtn_one/vbridges/vbr_one/interfaces/if1 {"enabled":true,"name":"if1","state":1,"entityState":1}This is a wrong behavior. The status should get updated in the vtn manager and the interface should do DOWN. When the adminstatus is disabled the Ping should also fail |
| Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 10/Mar/15 ] |
|
Issue Scenario : When the admin_status attribute of the Vbridge Itnerface is modified, the same change is not reflected in the VTN Manager of the corresponding ODL controller. Reproduce the Bug : First get a set-up for vtn manager and coordinator using the example: Then update the vBr interface admin status using the below command : curl -v --user admin:adminpass -H 'content-type: application/json' -H 'ipaddr:127.0.0.1' -X PUT -d '{"interface": {"if_name": "if1","description": "if_desc1", "adminstatus": "disable"}}' http://127.0.0.1:8083/vtn-webapi/vtns/vtn_one/vbridges/vbr_one/interfaces/if1.json When the GET command is used in the Vtn manager to get the status of the interface: curl -v --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://localhost:8080/controller/nb/v2/vtn/default/vtns/vtn_one/vbridges/vbr_one/interfaces/if1 This is the result : {"enabled":true,"name":"if1","state":1,"entityState":1}Occurrence of the issue : Update of the admin_status attribute in VTN Coordiantor. |
| Comment by Hideyuki Tai [ 11/Mar/15 ] |
|
The patch for this bug was merged into the master branch of the vtn.git. |
| Comment by Hideyuki Tai [ 12/Mar/15 ] |
|
The patch for this bug was also merged into the stable/helium branch of the vtn.git. |