Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

stable 1.6 backport: netmon: Fix bug in how routes are converted#1532

Merged
jodh-intel merged 1 commit into
kata-containers:stable-1.6from
amshinde:my-stable-1.6
Apr 15, 2019
Merged

stable 1.6 backport: netmon: Fix bug in how routes are converted#1532
jodh-intel merged 1 commit into
kata-containers:stable-1.6from
amshinde:my-stable-1.6

Conversation

@amshinde
Copy link
Copy Markdown
Member

The agent expects a IP CIDR for the route destination
rather than an IP address. netmon was incorrectly
converting route dest to an IP address and hence
exiting with an error.

We did not have an integration test for netmon with tcfilter mode.
macvtap mode did not uncover this, as with macvtap routes are
not really passed to the agent.
We delete the IP on the veth device, and netmon looks at the
routes after the IP is deleted with macvtap.

Fixes #1523

Signed-off-by: Archana Shinde archana.m.shinde@intel.com

The agent expects a IP CIDR for the route destination
rather than an IP address. netmon was incorrectly
converting route dest to an IP address and hence
exiting with an error.

We did not have an integration test for netmon with tcfilter mode.
macvtap mode did not uncover this, as with macvtap routes are
not really passed to the agent.
We delete the IP on the veth device, and netmon looks at the
routes after the IP is deleted with macvtap.

Fixes kata-containers#1523

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
@amshinde amshinde changed the title netmon: Fix bug in how routes are converted stable 1.6 backport: netmon: Fix bug in how routes are converted Apr 12, 2019
@amshinde
Copy link
Copy Markdown
Member Author

@egernst @jcvenegas Can we merge this?

Copy link
Copy Markdown
Contributor

@ganeshmaharaj ganeshmaharaj left a comment

Choose a reason for hiding this comment

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

/LGTM

@jodh-intel jodh-intel merged commit de0c06b into kata-containers:stable-1.6 Apr 15, 2019
@amshinde amshinde deleted the my-stable-1.6 branch July 11, 2019 22:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants