You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run probe using cyclonus_0.0.5 probe --noisy=true --policy-path netpol.yaml
Namespace/pods:
Namespace x
labels: {"ns": "x"}
pods:
pod a
labels {"pod": "a"}
ip: 10.10.1.11
pod b
labels {"pod": "b"}
ip: 10.10.2.26
pod c
labels {"pod": "c"}
ip: 10.10.2.25
Namespace y
labels: {"ns": "y"}
pods:
pod a
labels {"pod": "a"}
ip: 10.10.1.12
pod b
labels {"pod": "b"}
ip: 10.10.2.27
pod c
labels {"pod": "c"}
ip: 10.10.2.28
Namespace z
labels: {"ns": "z"}
pods:
pod a
labels {"pod": "a"}
ip: 10.10.2.22
pod b
labels {"pod": "b"}
ip: 10.10.2.23
pod c
labels {"pod": "c"}
ip: 10.10.2.24
Expected
Expected connectivity matrix:
There are 9 pods, so 9x9 = 81 possible requests from pod to pod.
The pod issuing the request is in the left column; the pod receiving the request is in the top row.
An X means the request was denied; a . means the request was allowed.
@mattfenwick Thanks for catching it!
This was caused by the non-standard CIDR 10.10.1.12/24 used in the policy. Apparently K8s allows it, however, OVS rejects it and it was then ignored:
E0120 16:44:25.220545 1 entry.go:314] Received OpenFlow1.3 error: OFPBMC_BAD_WILDCARDS on message OFPT_EXPERIMENTER
Describe the bug
A NetworkPolicy which allows ingress traffic by an IPBlock/CIDR does not allow traffic from the IPBlock on a KinD cluster running antrea-0.12.0.
To Reproduce
Create a KinD cluster:
netpol.yaml:
Create netpol and pods and run probe using Cyclonus:
cyclonus_0.0.5 probe --noisy=true --policy-path netpol.yaml
Namespace/pods:
Namespace x
Namespace y
Namespace z
Expected
Expected connectivity matrix:
There are 9 pods, so 9x9 = 81 possible requests from pod to pod.
The pod issuing the request is in the left column; the pod receiving the request is in the top row.
An
X
means the request was denied; a.
means the request was allowed.Actual behavior
Connectivity on kube/antrea:
Versions:
Please provide the following information:
Antrea version: v0.12.0
KinD version 0.9.0
Kubernetes version:
Container runtime: containerd from KinD v0.9.0
Linux kernel version on the Kubernetes Nodes (
uname -r
): 4.19.121-linuxkitAdditional context
The text was updated successfully, but these errors were encountered: