contrail-ansible: configuration for analytics wrongly configures zookeeper of contrail-controller instead of contrail-analyticsdb

Bug #1773091 reported by Bernhard Koessler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
Critical
Sundaresan Rajangam
R5.0
Invalid
Critical
Sundaresan Rajangam
Trunk
Invalid
Critical
Sundaresan Rajangam

Bug Description

zookeeper in contrail-analyticsdb container runs a separate cluster listening on port 2182 per default (as compared to 2181 on contrail-controller) as per
https://github.com/Juniper/contrail-ansible-internal/blob/54978053db9159b6c7ad49c12c8a713c150e28f2/playbooks/roles/contrail/common/defaults/main.yml#L56

It is expected that analytics services connect to the zookeeper cluster running on analyticsdb. However, analytics services are configured with the same zookeeper list/port as the controller, e.g.:
https://github.com/Juniper/contrail-ansible-internal/blob/5442c0f52101f4a6bb251c079978c03dbe90c796/playbooks/roles/contrail/analytics/tasks/collector.yml#L12

where zk_servers_with_port is defined here derived from zk_server_list: https://github.com/Juniper/contrail-ansible-internal/blob/4d2569e858a9ea08296266f9c7235af975bc49f1/playbooks/roles/contrail/common/vars/main.yml#L11

and zk_server_list is derived from config_server_list: https://github.com/Juniper/contrail-ansible-internal/blob/54978053db9159b6c7ad49c12c8a713c150e28f2/playbooks/roles/contrail/common/defaults/main.yml#L47

Revision history for this message
Bernhard Koessler (bkoessler) wrote :

Need fix for 4.1.

Revision history for this message
Abhay Joshi (abhayj) wrote :

2 Things:

1. Bug is applicable to 4.1.x only and not 5.x, hence marking 5.x instances as invalid.
2. Bug is for analytics team to look into.

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

Review in progress for https://review.opencontrail.org/44137
Submitter: Santosh Gupta (<email address hidden>)

Revision history for this message
Santosh Gupta (sangupta) wrote :

In R5.0 and trunk, analytics services already point to analyticsdb zookeeper instance. Hence no fix is needed.

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

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

commit efe898d787f73a93060bd651a9dde3796590ad79
Author: Santosh Gupta <email address hidden>
Date: Tue Jun 26 11:46:56 2018 -0700

Analytics services point to analyticsdb zookeeper

Provision analytics services to use analyticsdb zookeeper on port 2182

Change-Id: Iadbb79990be15f581298effcebd2dcfdda6cdb9a
Closes-Bug: #1773091

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.