[k8s]: Avoid limitation to have multiple k8s_master configured

Bug #1768714 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

As of now, we support only 1 k8s master.
And we can have a HA setup with multiple contrail-kube-managers running.

But at the same time, we have a limitation in HA setup contrail-ansible-deployer provisioning, that we need to mention k8s_master role and kube_manager role together on all the nodes.

Though, k8s_master role will get installed on only 1 node, we need to mention this role at every Kube-manager.

This further affects our test runs where it reads the contrail-test-inputs file and populate k8s_master info.
It can get wrong node IP in a HA setup due to this limitation.

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

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

commit 31d66391651d02bd57bf9f9e283953d0f0b1f13f
Author: Pulkit Tandon <email address hidden>
Date: Thu May 3 09:00:44 2018 +0530

Enhanced the test code to pick the correct k8s_master IP out of the list
of k8s_master role mentioned in contrail_test_inputs.yaml
Apart from this, changed a ContrailStatusChecker check to verify only
restarted service status to ignore other services in case they are already
down but non affecting

Closes-bug: #1768714
Change-Id: I5f3d4634a5b9a0ff26a5cc7e8a8f9d0ea61734b4

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

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

commit 971bf4af35459254ff16b1640aadc6676811f3f7
Author: Pulkit Tandon <email address hidden>
Date: Thu May 3 09:00:44 2018 +0530

Enhanced the test code to pick the correct k8s_master IP out of the list
of k8s_master role mentioned in contrail_test_inputs.yaml

Closes-bug: #1768714
Change-Id: I5f3d4634a5b9a0ff26a5cc7e8a8f9d0ea61734b4

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

Getting verified since long.
Last verified on R5.0-77 and master-117

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.