[k8s]: Automate parallel deletion of k8s objects

Bug #1773624 reported by Pulkit Tandon on 2018-05-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Released
High
Pulkit Tandon
Trunk
Fix Released
High
Pulkit Tandon

Bug Description

Deletion of single Pod in automated script sometimes takes 20 + seconds.
If there are multiple Pods, it takes a lot of time in cleanup as it happens sequentially.

Thus making the deletion to happen parallely.

Review in progress for https://review.opencontrail.org/43318
Submitter: Pulkit Tandon (<email address hidden>)

OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/43340
Submitter: Pulkit Tandon (<email address hidden>)

Review in progress for https://review.opencontrail.org/43341
Submitter: Pulkit Tandon (<email address hidden>)

Review in progress for https://review.opencontrail.org/43621
Submitter: Pulkit Tandon (<email address hidden>)

Reviewed: https://review.opencontrail.org/43621
Committed: http://github.com/Juniper/contrail-test/commit/4fe9f7333d2f3d89e9fadda5ada9c7ee49f8cf58
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 4fe9f7333d2f3d89e9fadda5ada9c7ee49f8cf58
Author: Pulkit Tandon <email address hidden>
Date: Thu Jun 7 17:01:00 2018 +0530

Parallel cleanup of kubernetes objects.
Same code can be used for any other contrail object.

This code will help reduce clenup time

Change-Id: I77bae0ce394e38d70a4d1fffeaff51692e2e6d96
Closes-bug: #1773624

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

commit 7e0984455a746248c6fbab71033107b8b32c9dd9
Author: Pulkit Tandon <email address hidden>
Date: Thu Jun 7 17:01:00 2018 +0530

Parallel cleanup of kubernetes objects.
Same code can be used for any other contrail object.

This code will help reduce clenup time

Change-Id: I77bae0ce394e38d70a4d1fffeaff51692e2e6d96
Closes-bug: #1773624

Pulkit Tandon (pulkitt) wrote :

Verified the sanity run on R5.0-94 and R5.1-132.
No issue observed due to this change and significant time difference was observed in sanity

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

Other bug subscribers