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.
Reviewed: https:/ /review. opencontrail. org/21917 github. org/Juniper/ contrail- controller/ commit/ 051a2c1851419b7 081db5e611a40eb c57235b52f
Committed: http://
Submitter: Zuul
Branch: master
commit 051a2c1851419b7 081db5e611a40eb c57235b52f
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 10297a99c2af3be a03faa938c)
(cherry picked from commit 42db6e38e55bc24
3. Fix missing import of OpServerUtils in analytics_db.py
Closes-Bug: #1609054 83cd83515b775d2 018e668d0c)
(cherry picked from commit cf5f0567c9bb03e
4. Remove aaa_mode value cloud-admin-only
Closes-Bug: #1609987 e6a11b01008064b 96ed66109e)
(cherry picked from commit 58a8a0fe3a404b5
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 82d7ae9697020a6 160e8d2682)
(cherry picked from commit 8072aa5ffd37e40
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: api-server/ tests/test_ perms2. py
src/config/
7. Fix issue with retrieving the db usage info in analytics-api
Closes-Bug: #1614285 55b9a72398f0c93 80c2755497)
(cherry picked from commit 0ec8bf74ba106d6
Change-Id: Id715e40fe39969 64b5298da1cd63c 248243071dd