[k8s-automation]: By default cluster_project will be empty from now. Need to handle that

Bug #1762041 reported by Pulkit Tandon
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

Build: R5.0-ocata-53

Recently, the default value of cluster_project has been set to empty dict.
In prior releases, it used to be a valid project value like:
cluster_project = {u'project': u'default', u'domain': u'default-domain'}

The code to test project Isolation has to be changed to handle this.

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

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

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

Review in progress for https://review.opencontrail.org/41566
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/41566
Committed: http://github.com/Juniper/contrail-test/commit/f1e3d22d82c18b93ff33b1eae9cc4eb179b76aa2
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit f1e3d22d82c18b93ff33b1eae9cc4eb179b76aa2
Author: Pulkit Tandon <email address hidden>
Date: Sat Apr 7 23:35:16 2018 +0530

K8s script change to handle change in default cluster_project value

User can set or unset cluster_project value in k8s as part of
provisioning
Also, if it is not set during provisioning, the defaults keep on
changing as part of develeopment
Due to above reason, the code has to handle the changes dynamically
ans set or reset the project isolation accordingly.
This commit takes care of that

Change-Id: If705c35603541b18b2f13b4f0bdd976894538b3b
Closes-bug: #1762041

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

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

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

Review in progress for https://review.opencontrail.org/41573
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/41556
Committed: http://github.com/Juniper/contrail-test/commit/062a1c2e49b17edb255e9190da1a21cb43b2ab24
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 062a1c2e49b17edb255e9190da1a21cb43b2ab24
Author: Pulkit Tandon <email address hidden>
Date: Sat Apr 7 23:35:16 2018 +0530

K8s script change to handle change in default cluster_project value

User can set or unset cluster_project value in k8s as part of
provisioning
Also, if it is not set during provisioning, the defaults keep on
changing as part of develeopment
Due to above reason, the code has to handle the changes dynamically
ans set or reset the project isolation accordingly.
This commit takes care of that

Change-Id: If705c35603541b18b2f13b4f0bdd976894538b3b
Closes-bug: #1762041

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

Verified the change on R5.0-10.
Working correctly.
Hence closing the bug

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

Verified on trunk branch as part of regular sanity.
Build ID: 59-FB
Worked as expected. Hence closing the bug on trunk

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.