[K8s-Automation]: Sanity test cases failure due to cleanup timing issue

Bug #1749676 reported by Pulkit Tandon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Released
High
Pulkit Tandon
R4.1
Fix Released
High
Pulkit Tandon
Trunk
Fix Released
High
Pulkit Tandon

Bug Description

Ubuntu 16.04.2 LTS" 4.1.1.0-97~ocata] k8s_scripts Kubernets HA Sanity

The sanity run has few failures.
The reason is that the cleanup of namespace in 1 test case does not happen before next test case is run.
This results in the next test case failing as it says that entry already exist.

Error print:
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods \"ctest-nginx-pod-55071722\" is forbidden: unable to create new content in namespace ns1 because it is being terminated.","reason":"Forbidden","details":{"name":"ctest-nginx-pod-55071722","kind":"pods"},"code":403}

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

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

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

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

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

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

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

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

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

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

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

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

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

Reviewed: https://review.opencontrail.org/39806
Committed: http://github.com/Juniper/contrail-test/commit/c53b051b94ad324a9e7ed39e4c238214c2362391
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit c53b051b94ad324a9e7ed39e4c238214c2362391
Author: Pulkit Tandon <email address hidden>
Date: Thu Feb 15 22:33:59 2018 +0530

Added verification after creating Kubernetes namespace

As namespace verification was not done, it resulted in skipping
cleanup verification and starting the subsequent test case with
old objects still being present. This caused failures in multiple test cases.
Hence adding verification

Change-Id: I24a1d3d6eb93f5cc2c930376705d71be213d7147
Closes-bug: #1749676

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

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

commit 0acb38eeb511ef2a0af6901d112e56a867c1fbe8
Author: Pulkit Tandon <email address hidden>
Date: Thu Feb 15 22:33:59 2018 +0530

Added verification after creating Kubernetes namespace

As namespace verification was not done, it resulted in skipping
cleanup verification and starting the subsequent test case with
old objects still being present. This caused failures in multiple test cases.
Hence adding verification

Change-Id: I24a1d3d6eb93f5cc2c930376705d71be213d7147
Closes-bug: #1749676

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

Reviewed: https://review.opencontrail.org/39805
Committed: http://github.com/Juniper/contrail-test/commit/cd23be2dc41937577da21b163886dc0d9e525f08
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit cd23be2dc41937577da21b163886dc0d9e525f08
Author: Pulkit Tandon <email address hidden>
Date: Thu Feb 15 22:33:59 2018 +0530

Added verification after creating Kubernetes namespace

As namespace verification was not done, it resulted in skipping
cleanup verification and starting the subsequent test case with
old objects still being present. This caused failures in multiple test cases.
Hence adding verification

Change-Id: I24a1d3d6eb93f5cc2c930376705d71be213d7147
Closes-bug: #1749676

Revision history for this message
Pulkit Tandon (pulkitt) wrote :

In the recent sanity run, it was verified that the issue does not exist anymore.
Build on which verification done:
Ubuntu 16.04.2 LTS" 4.1.1.0-100~ocata

Hence closing the bug

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.