xenial fab setup issues with contrail-analytics

Bug #1667082 reported by Megh Bhatt
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
High
Megh Bhatt

Bug Description

contrail-analytics-api has authentication failure

Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: Traceback (most recent call last):
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/bottle.py", line 862, in _handle
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: return route.call(**args)
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/bottle.py", line 1729, in wrapper
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: rv = callback(*a, **ka)
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/opserver/opserver.py", line 421, in _impl
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: self._vnc_api_client.is_role_cloud_admin(user_token):
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/opserver/vnc_cfg_api_client.py", line 61, in is_role_cloud_admin
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: result = self._get_user_token_info(user_token)
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/opserver/vnc_cfg_api_client.py", line 30, in _get_user_token_info
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: return self._vnc_api_client.obj_perms(user_token)
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 42, in wrapper
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: return func(self, *args, **kwargs)
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 1250, in obj_perms
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: rv = self._request_server(rest.OP_GET, "/obj-perms", data=query)
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 755, in _request_server
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: retry_count=retry_count)
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 820, in _request
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: self._headers = self._authenticate(content, self._headers)
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 625, in _authenticate
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: raise RuntimeError('Authentication Failure')
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: RuntimeError: Authentication Failure
Feb 22 11:32:06 b2s36 contrail-analytics-api[1350]: 10.84.23.59 - - [2017-02-22 11:32:06] "GET /analytics/uves/vrouters HTTP/1.1" 500 156 0.101318

root@b2s36:/# ps aux | grep contrail-analytics-api
contrail 1350 0.1 0.3 467712 103872 ? Ssl Feb21 2:11 /usr/bin/python /usr/bin/contrail-analytics-api

contrail-analytics-api needs to have default conf file of /etc/contrail/contrail-analytics-api.conf, /etc/contrail/contrail-keystone-auth.conf so that it can be launched without any conf files and still work fine.

Similarly contrail-snap-collector, contrail-topology

root@b2s36:/# ps aux | grep contrail-snmp-collector
contrail 1352 0.5 0.2 286828 84300 ? Ssl Feb21 7:54 /usr/bin/python /usr/bin/contrail-snmp-collector
root 26770 0.0 0.0 15296 2156 pts/0 S+ 11:36 0:00 grep --color=auto contrail-snmp-collector
root@b2s36:/# ps aux | grep contrail-topology
contrail 1302 0.0 0.2 268744 71048 ? Ssl Feb21 0:22 /usr/bin/python /usr/bin/contrail-topology
root 28566 0.0 0.0 15296 2004 pts/0 S+ 11:38 0:00 grep --color=auto contrail-topology

Currently in fab and/or SM we are modifying the INI file of supervisord but that does not seem to be a correct approach since then we will need to change those files for all different provisioning systems

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

Review in progress for https://review.opencontrail.org/29054
Submitter: Megh Bhatt (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/29057
Submitter: Megh Bhatt (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/29058
Submitter: Megh Bhatt (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/29054
Submitter: Megh Bhatt (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/29058
Submitter: Megh Bhatt (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/29054
Committed: http://github.org/Juniper/contrail-controller/commit/a169eca59da9841a18f48268784ae8479d855afb
Submitter: Zuul (<email address hidden>)
Branch: master

commit a169eca59da9841a18f48268784ae8479d855afb
Author: Megh Bhatt <email address hidden>
Date: Wed Feb 22 16:38:50 2017 -0800

Fix issues related to default configuration file for analytics daemons

1. Currently the analytics daemons do not pick up their default configuration
file and so the supervisord ini file or the systemd service file have to
launch them with the --config_file option on command line. This causes
issue when either new init system is used or new provisioning method is
used or when upgrading and the daemon needs an additional default
configuration file
2. Change the analytics daemons to have default configuration files so that
they can be launched without specifying --config_file option in the
supervisord ini file or the systemd service file
3. Cleanup to display the default values when --help option is used
4. Cleanup of contrail-collector and contrail-query-engine --help display to
club options based on sections

Change-Id: Ibd054e4ec753f7ee292f65cffd472e88b1fb62fd
Partial-Bug: #1667082

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

Reviewed: https://review.opencontrail.org/29057
Committed: http://github.org/Juniper/contrail-provisioning/commit/389ced4de773be1a163f45a1c0c8d1affde123c4
Submitter: Zuul (<email address hidden>)
Branch: master

commit 389ced4de773be1a163f45a1c0c8d1affde123c4
Author: Megh Bhatt <email address hidden>
Date: Wed Feb 22 23:15:06 2017 -0800

Fix issues related to default configuration file for analytics daemons

1. Currently the analytics daemons do not pick up their default configuration
file and so the supervisord ini file or the systemd service file have to
launch them with the --config_file option on command line. This causes
issue when either new init system is used or new provisioning method is
used or when upgrading and the daemon needs an additional default
configuration file
2. Change the analytics daemons to have default configuration files so that
they can be launched without specifying --config_file option in the
supervisord ini file or the systemd service file
3. Cleanup to display the default values when --help option is used
4. Cleanup of contrail-collector and contrail-query-engine --help display to
club options based on sections

Change-Id: I820a473a532b9038842c014d273812f2c48b23cc
Partial-Bug: #1667082

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

Review in progress for https://review.opencontrail.org/29058
Submitter: Megh Bhatt (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/29058
Committed: http://github.org/Juniper/contrail-puppet/commit/fa870576e51a33572a1eb2e68b3052e344f31efc
Submitter: Zuul (<email address hidden>)
Branch: master

commit fa870576e51a33572a1eb2e68b3052e344f31efc
Author: Megh Bhatt <email address hidden>
Date: Mon Feb 27 11:25:57 2017 -0800

Fix issues related to default configuration file for analytics daemons

1. Currently the analytics daemons do not pick up their default configuration
file and so the supervisord ini file or the systemd service file have to
launch them with the --config_file option on command line. This causes
issue when either new init system is used or new provisioning method is
used or when upgrading and the daemon needs an additional default
configuration file
2. Change the analytics daemons to have default configuration files so that
they can be launched without specifying --config_file option in the
supervisord ini file or the systemd service file
3. Cleanup to display the default values when --help option is used
4. Cleanup of contrail-collector and contrail-query-engine --help display to
club options based on sections

Change-Id: I80bc28ba51ca6b1ebec1d33afa01aca1603bafcd
Closes-Bug: #1667082

information type: Proprietary → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.