[CONTROLLER-216] Unable to see the flow stats after adding a flow for OpenDaylight Clustering project Created: 17/Mar/14  Updated: 25/Jul/23  Resolved: 17/Apr/14

Status: Verified
Project: controller
Component/s: clustering
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Madhusudhan Ananderi Assignee: Yevgeny Khodorkovsky
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC



 Description   

Given C1 and C2 controllers in cluster of two controllers, flows statistics are not present after recovering a controller from failure.

Steps for reproducing the issue:

1. Download the latest controller wget https://jenkins.opendaylight.org/integration/job/integration-project-centralized-integration/lastSuccessfulBuild/artifact/distributions/base/target/distributions-base-0.1.0-SNAPSHOT-osgipackage.zip in two different VMs
2. Start a controller say C1 using ./run.sh -Dsupernodes=10.125.136.38:10.125.136.43 -start
3. Start another controller say C2 using ./run.sh -Dsupernodes=10.125.136.38:10.125.136.43 -start
4. Start mininet, ${start}= sudo mn --controller=remote,ip=${CONTROLLER_C1} --topo tree,2
5. Set the bridges for bringing up C2 controller at mininet:
$ ovs-vsctl set-controller s1 tcp:Controller1_IP:6633 tcp:Controller2_IP:6633
$ ovs-vsctl set-controller s2 tcp:Controller1_IP:6633 tcp:Controller2_IP:6633
$ ovs-vsctl set-controller s3 tcp:Controller1_IP:6633 tcp:Controller2_IP:6633
5. Use PUT request for adding a flow in C1
PUT http://Controller1_IP:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:02/staticFlow/flow1 + flow1 body

flow 1 body:

<flowConfig>
<installInHw>true</installInHw>
<name>flow1</name>
<node>
<id>00:00:00:00:00:00:00:02</id>
<type>OF</type>
</node>
<priority>1</priority>
<etherType>0x800</etherType>
<nwDst>10.0.0.1/32</nwDst>
<actions>OUTPUT=1</actions>
</flowConfig>

6. Verify the flow stats in both the controllers (C1 & C2)

See flow1 on Controller1 (i.e. GET http://Controller1_IP:8080/controller/nb/v2/statistics/default/flow) and check flow is present
See flow1 on Controller2 (i.e. GET http://Controller2_IP:8080/controller/nb/v2/statistics/default/flow) and check the same flow is present

7. Bring down the controller C1 (use ./run.sh -stop)
8. See flow1 on Controller2 (i.e. GET http://Controller2_IP:8080/controller/nb/v2/statistics/default/flow) and check the same flow is present
9. Bring up the controller C1 (./run.sh -start)
10. See flow1 on Controller1 (i.e. GET http://Controller1_IP:8080/controller/nb/v2/statistics/default/flow) and check the same flow is present.

{Note: I am unable to see the flows stats. Sometimes it is showing up but not frequently stable}

11.See flow1 on Controller2 (i.e. GET http://Controller2_IP:8080/controller/nb/v2/statistics/default/flow) and check the same flow is present.

{Note: I am unable to see the flows stats. Sometimes it is showing up but not frequently stable}

12. Bring down the controller C2
13. Check the same flow in controller C1

{Note: I am unable to see the flows stats}

Thanks,
Madhusudhan



 Comments   
Comment by Madhusudhan Ananderi [ 04/Apr/14 ]

Hello,

I would like to follow-up with this bug. Can you please let me know if there is any resolution.

Thanks,
Madhusudhan

Comment by Yevgeny Khodorkovsky [ 17/Apr/14 ]

From: Madhusudhan Kandadai <madhusudhan.opendaylight@yahoo.com>
Date: Wednesday, April 16, 2014 at 12:56 PM
To: "Alessandro Boch (aboch)" <aboch@cisco.com>
Cc: Luis Gomez <ecelgp@gmail.com>, Yevgeny Khodorkovsky <ykhodork@cisco.com>
Subject: Re: Clustering test

Hi Alessandro/Luis,

Thank you for your email.

I have tested against new ODL controller and found that it is working as expected and could not see any errors. Have tested the following scenarios:

1. Give a cluster of two controllers C1 & C2
2. Start both the controllers with supernode
3. Add a flow in C1 and verify the flow stats in C1 & C2
4. Bring C1 down and verify the flow stats in C2
5. Bring C1 back to the normal and check the flow in C1

Regards,
Madhusudhan

On Wed, Apr 16, 2014 at 9:31 AM, Alessandro Boch (aboch) <aboch@cisco.com> wrote:
Hi Luis, Madhusudhan,

Last week I had time for this and tried few times to reproduce, but was not able to.

When the bug was opened, I was able to consistently reproduce.

I am guessing this got fixed by a fix from Yevgeny.

Just to clarify, I tested latest ODL code, not H release one.

Please let me know if you still see the issue with latest code.

Thanks,
Alessandro

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