[K8s] Build 4.0.0.0-3041: Removal of member from loadbalacer pool leaving junk entry in nh --get output

Bug #1670820 reported by chhandak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Medium
RAVI KIRAN
R3.2
Fix Committed
Medium
RAVI KIRAN
Trunk
Fix Committed
Medium
RAVI KIRAN

Bug Description

Steps to reproduce
--------------------
1. Create Service in kubernets pointing to replication controller(rc) of 3 members.
So Service has 3 backends. ECMP composite nexthop for Service IP pointing to 3 entry.

2. Change the replica count in rc to higher value . Say 100
Service has 100 backends. ECMP composite nexthop for Service IP pointing to 100 entry.

3. Bring back replica value to 3.
Here all the 97 composite nexthop is removed and replaced with -1 entry. and "vRouter(Response): No such device " log is coming

root@kube-system-2(agent):/# rt --dump 1 | grep 10.100.51.120| more
10.100.51.120/32 32 P - 420 -
root@kube-system-2(agent):/# nh --get 420
Id:420 Type:Composite Fmly: AF_INET Rid:0 Ref_cnt:3 Vrf:1
              Flags:Valid, Policy, Ecmp, Etree Root,
              Valid Hash Key Parameters: Proto,SrcIP,SrcPort,DstIp,DstPort
              Sub NH(label): 19(20) 27(21) 23(19) -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
                             -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
                             -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
                             -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
                             -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Id:19 Type:Encap Fmly: AF_INET Rid:0 Ref_cnt:3 Vrf:1
              Flags:Valid, Etree Root,
              EncapFmly:0806 Oif:5 Len:14
              Encap Data: 02 92 7b 93 ea fa 00 00 5e 00 01 00 08 00

Id:27 Type:Encap Fmly: AF_INET Rid:0 Ref_cnt:3 Vrf:1
              Flags:Valid, Etree Root,
              EncapFmly:0806 Oif:7 Len:14
              Encap Data: 02 92 fd 13 70 fa 00 00 5e 00 01 00 08 00

Id:23 Type:Encap Fmly: AF_INET Rid:0 Ref_cnt:3 Vrf:1
              Flags:Valid, Etree Root,
              EncapFmly:0806 Oif:6 Len:14
              Encap Data: 02 92 b2 0e 20 fa 00 00 5e 00 01 00 08 00

vRouter(Response): No such device (19)
vRouter(Response): No such device (19)
vRouter(Response): No such device (19)
vRouter(Response): No such device (19)
vRouter(Response): No such device (19)
vRouter(Response): No such device (19)

Tags: vrouter
chhandak (chhandak)
Changed in juniperopenstack:
importance: Undecided → High
assignee: nobody → Hari Prasad Killi (haripk)
milestone: none → r4.0
information type: Proprietary → Public
Revision history for this message
Hari Prasad Killi (haripk) wrote :

While nh utility is expanding all sub-NHs, it has to ignore cases where the index is -1.

Changed in juniperopenstack:
importance: High → Medium
assignee: Hari Prasad Killi (haripk) → RAVI KIRAN (ravibk)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/29438
Submitter: RAVI KIRAN (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/29438
Committed: http://github.org/Juniper/contrail-vrouter/commit/3a0faa68396d1a95b3498590f5dd024968518eb7
Submitter: Zuul (<email address hidden>)
Branch: master

commit 3a0faa68396d1a95b3498590f5dd024968518eb7
Author: Ravi BK <email address hidden>
Date: Wed Mar 8 16:28:29 2017 +0530

Fixing invalid message received in nh --get o/p

Skipping sub-nh expansion for composite nh case if the index is -1
in nh utility.

Change-Id: If6ef6424a67f96478d8cb740479728754b0d431f
Closes-Bug: #1670820

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/29748
Submitter: RAVI KIRAN (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/29749
Submitter: RAVI KIRAN (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/29750
Submitter: RAVI KIRAN (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/29750
Committed: http://github.org/Juniper/contrail-vrouter/commit/7ce3dc748e6ea3bf5dc5b5238aa092c2fce3c31b
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit 7ce3dc748e6ea3bf5dc5b5238aa092c2fce3c31b
Author: Ravi BK <email address hidden>
Date: Tue Mar 21 13:52:20 2017 +0530

Cherry-pick of 29438 to R3.1

Fixing invalid message received in nh --get o/p

Skipping sub-nh expansion for composite nh case if the index is -1
in nh utility.

Change-Id: I2bb90d7b1ff16beb088f928ead3e4a6d84f5537d
Closes-Bug: #1670820

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/29749
Committed: http://github.org/Juniper/contrail-vrouter/commit/16a7cfc77d3e257d6f01ecff974d46a142e909ed
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 16a7cfc77d3e257d6f01ecff974d46a142e909ed
Author: Ravi BK <email address hidden>
Date: Tue Mar 21 13:52:20 2017 +0530

Cherry-pick of 29438 to R3.1

Fixing invalid message received in nh --get o/p

Skipping sub-nh expansion for composite nh case if the index is -1
in nh utility.

Change-Id: I2bb90d7b1ff16beb088f928ead3e4a6d84f5537d
Closes-Bug: #1670820

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.