Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix interactions between stats and packet forwarding testcases #177

Merged
merged 3 commits into from
Apr 10, 2015

Conversation

rlane
Copy link
Contributor

@rlane rlane commented Apr 10, 2015

Reviewer: @harshsin

A switch that periodically syncs stats to the OpenFlow layer (like IVS) could
fail these stats tests because they didn't account for the delay in the stats
updates from previous tests. They already accounted for the delay in stats for
their own test.

rlane added 3 commits April 10, 2015 12:22
If an earlier test run sends a packet through the port, and if the switch takes
a second or so to make those counter updates visible to OpenFlow, then this
test would fail because the port stats would be higher than expected.

Changing the conditional reduces the usefulness of the test because it won't
catch overcounting errors, but it's necessary to make it correct.
This code wasn't doing the stats transaction correctly since it didn't account
for the switch splitting the stats entries across multiple messages.
@harshsin
Copy link
Contributor

ACK

@bsn-abat
Copy link

ABAT: START_MERGE: Log file at http://vbs21/abat/2015.04.10.2233-m.oftest.master/abat.log

@bsn-abat bsn-abat merged commit 3a208f8 into floodlight:master Apr 10, 2015
@bsn-abat
Copy link

ABAT: ACCEPT: Successfully merged

In case you want to see the build log, check out :
Log file at http://vbs21/abat/2015.04.10.2233-m.oftest.master/abat.log
/cc

bsn-abat pushed a commit that referenced this pull request Apr 10, 2015
fix interactions between stats and packet forwarding testcases (#177)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants