[OPNFLWPLUG-62] Meter Statistics not showing output/logs on OSGI prompt and through REST Created: 29/Jan/14 Updated: 27/Sep/21 Resolved: 06/Feb/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Praveen Darshanam | Assignee: | Sachi Gupta |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| Attachments: |
|
| Description |
|
Start controller (./run.sh -debug) and mininet (sudo mn --topo single,2 --controller remote,ip=192.168.56.103:6653 --switch ovsk,protocols=OpenFlow13) Controller version used |
| Comments |
| Comment by Praveen Darshanam [ 29/Jan/14 ] |
|
Attachment f901.xml has been added with description: Meter, Group and Flow Statistics |
| Comment by Praveen Darshanam [ 30/Jan/14 ] |
|
Used the xml provided at GET request using below link doesn't return Meter stats instead return some unexpected HTML file ; |
| Comment by Praveen Darshanam [ 30/Jan/14 ] |
|
Mininet details mininet@mininet-vm104:~$ sudo ovs-ofctl -O OpenFlow13 dump-desc s1 mininet@mininet-vm104:~$ sudo ovs-ofctl -O OpenFlow13 show s1 mininet@mininet-vm104:~$ sudo ovs-ofctl -V |
| Comment by Sachi Gupta [ 31/Jan/14 ] |
|
Hi Praveen, I am able to replicate the same problem. Observation 1: GET request using below link doesn't return Meter stats instead return some unexpected HTML file Observation 2: The meterConfigStats return null value on osgi prompt. Will investigate and debug the issue to fix it. |
| Comment by Anil Vishnoi [ 31/Jan/14 ] |
|
Hi Sachi/Praveen, Can you please try to recreate this scenario with CPqD switch? I think Openvswitch 2.0.0 don't have support for Meter Multipart request/reply messages. So if you test with CPqD switch and it works fine then i think we can confirm it. Thanks |
| Comment by Sachi Gupta [ 31/Jan/14 ] |
|
Hi Avishnoi, Please find the comments inline: 1. Have run the controller using openflowplugin1.3 using https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin::Build_Instructions 2. Have installed mininet 2.1.0 with openvswitch 2.0.0 and openflow1.3 using https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin::Test_Environment 3. Started controller and mininet (sudo mn --topo single,2 --controller remote,ip=192.168.56.103:6653 --switch ovsk,protocols=OpenFlow13) 4. Used the xml provided at https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:End_to_End_Meters 5. GET request using below link doesn't return Meter stats instead return some unexpected HTML file |
| Comment by Sachi Gupta [ 03/Feb/14 ] |
|
Hi, Please find the below comments: Have tried to add meter by three different ways: 1. Added meter through osgi prompt: The output is as: 2. Added meter through restconf: REQUEST BODY: <?xml version="1.0" encoding="UTF-8" standalone="no"?> The output is as: 3. Added meter through switch: The output is as: 3.2 On mininet meter stats are received : RECEIVED: ]}]} 3.3 Through restconf GET http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/meter/1 returns "404 NOT FOUND" It seems the issue is in adding the meter to the switch through controller(Either via osgi prompt or through RestConf) |
| Comment by Sachi Gupta [ 03/Feb/14 ] |
|
Hi Avishnoi/Praveen, I recreated the scenario with CPqD Switch: 1. Run the Controller with openflowplugin 1.3 2. Setup and start the CPqD switch 3. The switch(MD_SAL|openflow:4/CPqD switch) is connected to the controller 4. Run the command addMeter openflow:4 on osgi prompt 5. The meter get added to the CPqD switch RECEIVED: ]}]} 6. Run the command meterConfigStats on osgi prompt and output is received 7. Used the Rest URLs to get the meter data - The URLs retain with correct information. GET http://127.0.0.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:4/meter/12 So, It seems that Meter Multipart request/reply messages works fine with CPqD switch whereas OpenvSwitch 2.0.0 doesnot have support for Meter Multipart request/reply messages. Please confirm to close the bug. |
| Comment by Praveen Darshanam [ 04/Feb/14 ] |
|
Hi Sachi, I see the same issue on Open vSwitch 2.1.0, this is not specific to OVS 2.0.0. Best Regards, |
| Comment by Sachi Gupta [ 04/Feb/14 ] |
|
Hi Praveen, I have replicated and tested the scenario with CPqD switch and it is working fine. It seems that the controller functionality is working fine, but the issue is with switch(whether it is OpenvSwitch - 2.0.0/OpenvSwitch - 2.1.0) Thanks, |
| Comment by Praveen Darshanam [ 04/Feb/14 ] |
|
Are we going to CLOSE the bug or change product and assign to other folks. |
| Comment by Sachi Gupta [ 04/Feb/14 ] |
|
Hi Praveen/ Avishnoi, The OpenDayLight controller functionality is working fine for meter/group statistics in CPqD switch Since OpenvSwitch-2.0.0/OpenvSwitch-2.1.0, any other, does not support meter/group statistics so it confirms that implementation needs to be enhanced in OpenvSwitch for meter/group So it seems, it is for OpenvSwitch not for OpenDaylight controller. |
| Comment by Anil Vishnoi [ 04/Feb/14 ] |
|
Agree, Its OVS issue and not Controller. I think we can close this bug. THanks |
| Comment by Sachi Gupta [ 06/Feb/14 ] |
|
Hi Avishnoi/Praveen, The bug is an OVS issue and not the controller, since the meter multipart request/reply messages are working fine with CPqD switch but not for OVS. So, I am closing it. |