[K8s] Build 4.0.0.0-3041: Service in user created namespace: Load balancing is not happening across all member
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Invalid
|
Critical
|
Ritesh |
Bug Description
Description:
When we create a service in user created namespace, load balancing is not happening across all the members.
FIP is associated with all the member interfaces as per agent inspostect, but nh --get for VIP only result in one of the member interfaces instead of composite next hop .
Also, traffic results indicating the same. It always choose single backend which pointed by vrouter
Restart of agent has solved the problem
[root@kube-system-1 ~]# kubectl get namespace
NAME STATUS AGE
default Active 10d
development Active 6h
kube-system Active 10d
[root@kube-system-1 ~]# kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-dev-3c71m 1/1 Running 0 2h
nginx-dev-ch3sk 1/1 Running 0 2h
nginx-dev-x312g 1/1 Running 0 2h
ubuntuapp-3 1/1 Running 0 9m
[root@kube-system-1 ~]# kubectl describe service my-service-dev
Name: my-service-dev
Namespace: development
Labels: <none>
Selector: app=nginx
Type: ClusterIP
IP: 10.97.93.86
Port: <unset> 80/TCP
Endpoints: 10.47.255.
Session Affinity: None
FIP associated to all the interface
root@kube-
10.97.93.86/32 32 P - 49 -
root@kube-
Id:49 Type:Encap Fmly: AF_INET Rid:0 Ref_cnt:5 Vrf:1
Encap Data: 02 f2 bc 31 56 02 00 00 5e 00 01 00 08 00
root@kube-
Vrouter Interface Table
Flags: P=Policy, X=Cross Connect, S=Service Chain, Mr=Receive Mirror
Mt=Transmit Mirror, Tc=Transmit Checksum Offload, L3=Layer 3, L2=Layer 2
D=DHCP, Vp=Vhost Physical, Pr=Promiscuous, Vnt=Native Vlan Tagged
Mnp=No MAC Proxy, Dpdk=DPDK PMD Interface, Rfl=Receive Filtering Offload, Mon=Interface is Monitored
Uuf=Unknown Unicast Flood, Vof=VLAN insert/strip offload, Df=Drop New Flows, L=MAC Learning Enabled
Proxy=MAC Requests Proxied Always, Er=Etree Root
vif0/11 OS: cn-6754
Vrf:1 Flags:PL3DEr MTU:9160 QOS:-1 Ref:5
RX packets:1097 bytes:46522 errors:0
TX packets:2203 bytes:93250 errors:0
root@kube-
Flow table(size 80609280, entries 629760)
Entries: Created 4 Added 4 Deleted 0 Changed 0 Processed 4 Used Overflow entries 0
(Created Flows/CPU: 1 1 2 0 0 0 0 0)(oflows 0)
Action:F=Forward, D=Drop N=NAT(S=SNAT, D=DNAT, Ps=SPAT, Pd=DPAT, L=Link Local Port)
Other:
Flags:E=Evicted, Ec=Evict Candidate, N=New Flow, M=Modified Dm=Delete Marked
TCP(r=reverse)
Index Source:
-------
900<=>94460 10.47.255.242:47546 6 (1->1)
(Gen: 10, K(nh):58, Action:N(D), Flags:, TCP:SSrEEr, E:0, QOS:-1, S(nh):58,
Stats:2/140, SPort 52720, TTL 0, Sinfo 12.0.0.0)
94460<=>900 10.47.255.243:80 6 (1->1) >>>>>> Always result in this backend. Vrouter is also pointing to this backend
(Gen: 11, K(nh):49, Action:N(S), Flags:, TCP:SSrEEr, E:0, QOS:-1, S(nh):49,
Stats:1/74, SPort 65486, TTL 0, Sinfo 11.0.0.0)
root@kube-
contrail-
contrail-
root@kube-
root@kube-
root@kube-
10.97.93.86/32 32 P - 54 -
root@kube-
Id:54 Type:Composite Fmly: AF_INET Rid:0 Ref_cnt:2 Vrf:1
Valid Hash Key Parameters: Proto,SrcIP,
Sub NH(label): 15(123) 27(124) 35(122)
Id:15 Type:Encap Fmly: AF_INET Rid:0 Ref_cnt:3 Vrf:1
Encap Data: 02 f2 bc 31 56 02 00 00 5e 00 01 00 08 00
Id:27 Type:Encap Fmly: AF_INET Rid:0 Ref_cnt:3 Vrf:1
Encap Data: 02 f2 1e 37 8a 02 00 00 5e 00 01 00 08 00
Id:35 Type:Encap Fmly: AF_INET Rid:0 Ref_cnt:3 Vrf:1
Encap Data: 02 f2 6a 8d 24 02 00 00 5e 00 01 00 08 00
Changed in juniperopenstack: | |
assignee: | Hari Prasad Killi (haripk) → jayaramsatya (jayaramsatya) |
Copied logs to /auto/cores/1670877