netmon: Fix bug in how routes are converted#1524
netmon: Fix bug in how routes are converted#1524sboeuf merged 1 commit intokata-containers:masterfrom
Conversation
|
/test |
|
/retest |
|
@amshinde I marked as stable candidate, please let me know if is fine and if it please backport for 1.5 and 1.6 |
99c6d56 to
429753d
Compare
|
/test |
There was a problem hiding this comment.
@amshinde one question. How did this work today before tcFilter. Looks like it has been incorrect for a while?
It would be good to include that detail in the commit message.
|
@mcastelino This code path was not exercised with macvtap unfortunately, which is why we didn't realize about the bug. In case of tc, the IP is untouched, that's why we got some routes received by netmon. |
|
@mcastelino Yes, this has been incorrect. This was not covered in our CI matrix - netmon +tc. I'll add that in the commit. |
|
@sboeuf In case of macvtap, we could have netmon pick up the routes for the veth before the IP is deleted to fix the macvtap mode. |
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>
429753d to
8abd2ec
Compare
|
/test |
|
@jcvenegas Yup this needs backporting. I have raised PRs to do so. Lets merge them once this goes in. |
|
@chavafg @jcvenegas Seeing this error in nemu CI. Have you seen this before? |
|
@amshinde yeah, I have seen it a couple of times... Seems like a network issue pulling images. I've sent a restart. |
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.
Fixes #1523
Signed-off-by: Archana Shinde archana.m.shinde@intel.com