[k8s-R5.0.1]: Service Floating IP is lost after endpoint deployment is deleted and recreated

Bug #1781186 reported by Pulkit Tandon on 2018-07-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
High
Pragash Vijayaragavan
Trunk
Fix Committed
High
Pragash Vijayaragavan

Bug Description

R5.0-122

Multi Cluster k8s nested mode setup.

The issue does not seem to be related to any specific kind of provisioning.

Steps:
1. Create a service and define a selector
2. Create a deployment with 2 replicas and labels as mentioned in the selector of service
-- Observed that k8s showing the service and endpoints correctly.
-- Observed that Floating Ip is correctly created for this service in contrail and IP is same as Cluster IP of the service
3. Deleted the deployment.
-- Observed that Floating IP for the service is deleted from contrail.
4. Created the same deployment again
-- Observed that k8s showing the service and endpoints correctly.
-- Observed that Floating IP was NOT recreated in contrail. Thus service was not reachable from any pod.

Pulkit Tandon (pulkitt) wrote :

Step 3 of above description is itself an issue.
On deletion of underlying deployment, the floating IP corresponding to the service should not be lost.

Hi pulpit,

can you give me "docker images" ; "docker ps | grep cube" ; "kubectl edit pod kube-manager-controller-<node> -n kube-system" outputs

Review in progress for https://review.opencontrail.org/44669
Submitter: Pragash Vijayaragavan (<email address hidden>)

Review in progress for https://review.opencontrail.org/44802
Submitter: Pragash Vijayaragavan (<email address hidden>)

Reviewed: https://review.opencontrail.org/44669
Committed: http://github.com/Juniper/contrail-controller/commit/2026b7b33e5b09edae2256ae8b4237e813113520
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 2026b7b33e5b09edae2256ae8b4237e813113520
Author: Pragash Vijayaragavan <email address hidden>
Date: Tue Jul 17 16:49:59 2018 -0700

Fixed floating ip deleted and introspect

1. Fixed floating ip being deleted after all endpoints
are deleted by removing the reference to the vmi of endpoints
2. Fixed introspect display issue and removed selectors from lb
as selectors can be retrieved from kubernetes.

Change-Id: Iefebe9912ff75e85dd19c63c6133a4f9c1e8a5ba
Closes-Bug: #1781186
Closes-Bug: #1772603

Review in progress for https://review.opencontrail.org/44802
Submitter: Pragash Vijayaragavan (<email address hidden>)

Reviewed: https://review.opencontrail.org/44802
Committed: http://github.com/Juniper/contrail-controller/commit/b624a9c30d8afbdd75b655eae2829d37607954e9
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit b624a9c30d8afbdd75b655eae2829d37607954e9
Author: Pragash Vijayaragavan <email address hidden>
Date: Tue Jul 17 16:49:59 2018 -0700

Fixed floating ip deleted and introspect

1. Fixed floating ip being deleted after all endpoints
are deleted by removing the reference to the vmi of endpoints
2. Fixed introspect display issue and removed selectors from lb
as selectors can be retrieved from kubernetes.

Change-Id: Iefebe9912ff75e85dd19c63c6133a4f9c1e8a5ba
Closes-Bug: #1781186
Closes-Bug: #1772603

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

Other bug subscribers