Skip to content

Fixing Netplugin disconnect #596

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

Merged
merged 1 commit into from
Nov 10, 2016
Merged

Fixing Netplugin disconnect #596

merged 1 commit into from
Nov 10, 2016

Conversation

abhi
Copy link
Member

@abhi abhi commented Nov 2, 2016

NetpluginDisconnect trigger exposed issue with vxlan vrep creation with ofport not found error.
First suspicion was ovsdb operation being async would need more retries. Also cherry picked sukhesh's commit in this area.

}
default:
// return false, ""
row, err := d.ovs.Transact(ovsDataBase, selectOp)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep the cache look up and fallback to Transact only if there is a miss?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the issue was with cache not being updated. So it wasnt a miss that was causing the issue. The cache had the vtep but not the ovsdb.

row, err := d.ovs.Transact(ovsDataBase, selectOp)

if err == nil && len(row) > 0 && len(row[0].Rows) > 0 {
value := row[0].Rows[0]["ofport"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if Rows[0] doesn't have ofport key?

@jojimt
Copy link
Contributor

jojimt commented Nov 5, 2016

@abhinandanpb as discussed, let's change only the retry for now.

@abhi abhi force-pushed the triggertestfix branch 3 times, most recently from 7480f15 to 13c100c Compare November 7, 2016 21:59
@abhi
Copy link
Member Author

abhi commented Nov 9, 2016

ping @jojimt

@jojimt jojimt merged commit 8d67617 into contiv:master Nov 10, 2016
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