analytics db auto-purge functionality broken

Bug #1614285 reported by Sundaresan Rajangam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Megh Bhatt
R3.1
Fix Committed
High
Sundaresan Rajangam
Trunk
Fix Committed
High
Megh Bhatt

Bug Description

The following log messages in contrail-analytics-api.log shows issue with reading db usage information.
auto-purge functionality depends on the periodic retrieval of the db usage UVE

08/18/2016 03:03:38 AM [contrail-analytics-api]: <type 'exceptions.TypeError'>
08/18/2016 03:03:38 AM [contrail-analytics-api]: ('expected string or buffer',)
08/18/2016 03:03:38 AM [contrail-analytics-api]: expected string or buffer
08/18/2016 03:03:38 AM [contrail-analytics-api]: Could not retrieve db usage information

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

Review in progress for https://review.opencontrail.org/23394
Submitter: Sundaresan Rajangam (<email address hidden>)

Revision history for this message
Sundaresan Rajangam (srajanga) wrote :

Megh,
Can you please take care of this in mainline/R3.0 with your patch for https://bugs.launchpad.net/juniperopenstack/+bug/1599654

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

Reviewed: https://review.opencontrail.org/23394
Committed: http://github.org/Juniper/contrail-controller/commit/0ec8bf74ba106d655b9a72398f0c9380c2755497
Submitter: Zuul
Branch: R3.1

commit 0ec8bf74ba106d655b9a72398f0c9380c2755497
Author: Sundaresan Rajangam <email address hidden>
Date: Wed Aug 17 17:41:08 2016 -0700

Fix issue with retrieving the db usage info in analytics-api

Change-Id: I21fbac8eb8d5659476b4235cfdfcfec27feb6e90
Closes-Bug: #1614285

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

Review in progress for https://review.opencontrail.org/21917
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/21917
Committed: http://github.org/Juniper/contrail-controller/commit/051a2c1851419b7081db5e611a40ebc57235b52f
Submitter: Zuul
Branch: master

commit 051a2c1851419b7081db5e611a40ebc57235b52f
Author: Megh Bhatt <email address hidden>
Date: Tue Jul 12 16:34:17 2016 -0700

1. Rename multi_tenancy to aaa_mode for analytics API

Handle keystone v2 and v3 token infos returned by
VNC API. Enable cloud-admin-only aaa_mode by default

Change analytics DB and underlay to overlay mapper to
use local admin port when quering opserver

Do not cache auth_token in vnc lib

Closes-Bug: #1599654

2. Changes to bring analytics authenticated access in sync with config

1. Rename aaa_mode value cloud-admin-only to cloud-admin
2. CLOUD_ADMIN_ROLE defaults to admin instead of cloud-admin

Partial-Bug: #1607563
(cherry picked from commit 42db6e38e55bc2410297a99c2af3bea03faa938c)

3. Fix missing import of OpServerUtils in analytics_db.py

Closes-Bug: #1609054
(cherry picked from commit cf5f0567c9bb03e83cd83515b775d2018e668d0c)

4. Remove aaa_mode value cloud-admin-only

Closes-Bug: #1609987
(cherry picked from commit 58a8a0fe3a404b5e6a11b01008064b96ed66109e)

5. Keep on trying to create VNC API client from analytics API

The gevent that creates the VNC API client was exiting due to
authentication failure exception. Changed code to handle all
exceptions and keep on trying to create the API client. The
node status will show the API connection down in case we are
not able to create the VNC API client.

Closes-Bug: #1611158
(cherry picked from commit 8072aa5ffd37e4082d7ae9697020a6160e8d2682)

6. Change the obj-perms API to pass in the user token in HTTP headers

With PKI tokens, when user token was passed in query parameters for
obj-perms API the token was getting truncated. Changed the API
to accept user token in X-USER-TOKEN HTTP header.

Closes-Bug: #1614376

Conflicts:
 src/config/api-server/tests/test_perms2.py

7. Fix issue with retrieving the db usage info in analytics-api

Closes-Bug: #1614285
(cherry picked from commit 0ec8bf74ba106d655b9a72398f0c9380c2755497)

Change-Id: Id715e40fe3996964b5298da1cd63c248243071dd

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

Review in progress for https://review.opencontrail.org/24157
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/24157
Committed: http://github.org/Juniper/contrail-controller/commit/34d36fcc529a467b03e44c0e107649dc8bd3e98c
Submitter: Zuul
Branch: R3.0

commit 34d36fcc529a467b03e44c0e107649dc8bd3e98c
Author: Sundaresan Rajangam <email address hidden>
Date: Wed Aug 17 17:41:08 2016 -0700

Fix issue with retrieving the db usage info in analytics-api

Change-Id: I21fbac8eb8d5659476b4235cfdfcfec27feb6e90
Closes-Bug: #1614285
(cherry picked from commit 0ec8bf74ba106d655b9a72398f0c9380c2755497)

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.