-
Notifications
You must be signed in to change notification settings - Fork 367
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
Do not panic when processing a PacketIn message for a denied connection #3447
Do not panic when processing a PacketIn message for a denied connection #3447
Conversation
If the NetworkPolicy or rule cannot be found in the cache. I assume that this is ok, since the existing log message used for this scenario has such a high level (4). Signed-off-by: Antonin Bas <abas@vmware.com>
This is what I observed in the Agent logs during testing:
|
Codecov Report
@@ Coverage Diff @@
## main #3447 +/- ##
==========================================
- Coverage 63.52% 53.77% -9.75%
==========================================
Files 268 374 +106
Lines 26900 41448 +14548
==========================================
+ Hits 17087 22287 +5200
- Misses 7951 16808 +8857
- Partials 1862 2353 +491
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Thinking more about this, this issue is probably because of a separate bug. It's bad that we panic here, but we panic because the rule ID we extract from the PacketIn message is clearly invalid. As a reminder we allocate ids incrementally starting at 0, and 168428067 is way too high to make any sense. Looking at the rest of the logs, we only have installed 4 rules, with IDs 1,2,3 and 4. See #3448 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test-all |
/test-e2e |
…on (antrea-io#3447) If the NetworkPolicy or rule cannot be found in the cache. I assume that this is ok, since the existing log message used for this scenario has such a high level (4). [CI][e2e] Wait for Service to be realized in proxy tests Change the mechanism to wait for Service to be realized from sleep for a fixed length of time into poll to make sure that the Service has been realized. Fixes antrea-io#2275 Signed-off-by: Antonin Bas <abas@vmware.com> Signed-off-by: Kumar Atish <atish.iaf@gmail.com>
…on (antrea-io#3447) If the NetworkPolicy or rule cannot be found in the cache. I assume that this is ok, since the existing log message used for this scenario has such a high level (4). [CI][e2e] Wait for Service to be realized in proxy tests Changed the mechanism to wait for Service to be realized from sleep for a fixed length of time into poll to make sure that the Service has been realized. The testProxyHairpin was using nc to listen for TCP connections, and it exits immediately after one successful connection. So the Pod terminated after the waitForService tests. Maybe it is caused by the limitation of nc in busybox. To resolve this, busybox pod has been replaced with agnhost in testProxyHairpin. Fixes antrea-io#2275 Signed-off-by: Antonin Bas <abas@vmware.com> Signed-off-by: Kumar Atish <atish.iaf@gmail.com>
…on (antrea-io#3447) If the NetworkPolicy or rule cannot be found in the cache. I assume that this is ok, since the existing log message used for this scenario has such a high level (4). [CI][e2e] Wait for Service to be realized in proxy tests Changed the mechanism to wait for Service to be realized from sleep for a fixed length of time into poll to make sure that the Service has been realized. The testProxyHairpin was using nc to listen for TCP connections, and it exits immediately after one successful connection. So the Pod terminated after the waitForService tests. Maybe it is caused by the limitation of nc in busybox. To resolve this, busybox pod has been replaced with agnhost in testProxyHairpin. Fixes antrea-io#2275 Signed-off-by: Antonin Bas <abas@vmware.com> Signed-off-by: Kumar Atish <atish.iaf@gmail.com>
…on (antrea-io#3447) If the NetworkPolicy or rule cannot be found in the cache. I assume that this is ok, since the existing log message used for this scenario has such a high level (4). [CI][e2e] Wait for Service to be realized in proxy tests Changed the mechanism to wait for Service to be realized from sleep for a fixed length of time into poll to make sure that the Service has been realized. The testProxyHairpin was using nc to listen for TCP connections, and it exits immediately after one successful connection. So the Pod terminated after the waitForService tests. Maybe it is caused by the limitation of nc in busybox. To resolve this, busybox pod has been replaced with agnhost in testProxyHairpin. Fixes antrea-io#2275 Signed-off-by: Antonin Bas <abas@vmware.com> Signed-off-by: Kumar Atish <atish.iaf@gmail.com>
…on (antrea-io#3447) If the NetworkPolicy or rule cannot be found in the cache. I assume that this is ok, since the existing log message used for this scenario has such a high level (4). [CI][e2e] Wait for Service to be realized in proxy tests Changed the mechanism to wait for Service to be realized from sleep for a fixed length of time into poll to make sure that the Service has been realized. The testProxyHairpin was using nc to listen for TCP connections, and it exits immediately after one successful connection. So the Pod terminated after the waitForService tests. Maybe it is caused by the limitation of nc in busybox. To resolve this, busybox pod has been replaced with agnhost in testProxyHairpin. Fixes antrea-io#2275 Signed-off-by: Antonin Bas <abas@vmware.com> Signed-off-by: Kumar Atish <atish.iaf@gmail.com>
If the NetworkPolicy or rule cannot be found in the cache.
I assume that this is ok, since the existing log message used for this
scenario has such a high level (4).
Signed-off-by: Antonin Bas abas@vmware.com