Service client auth in listener

Bug #1471878 reported by Steve McLellan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
Medium
Steve McLellan

Bug Description

To avoid re-authorizing on every use of service clients (nova, glance etc) elasticsearch/plugins/openstack_clients.py attaches an authorized instance of each client to the client_cache dictionary. Over time, keystone tokens will become invalid and this will result in 401s once the listener's been running for a while. I'm filing this as a reminder to myself to a) confirm it happens (it was a problem with the kilo summit demo code) and b) fix it.

There's a decorator in openstack_clients 'clear_cache_on_unauthorized' that should be attached to the serialize_xyz functions in each plugin's __init__. I'm also ok with a different approach to the problem.

Steve McLellan (sjmc7)
Changed in searchlight:
assignee: nobody → Steve McLellan (sjmc7)
Steve McLellan (sjmc7)
Changed in searchlight:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Travis Tripp (travis-tripp) wrote :
Changed in searchlight:
milestone: none → liberty-rc1
status: In Progress → Fix Committed
Changed in searchlight:
status: Fix Committed → Fix Released
Changed in searchlight:
milestone: liberty-rc1 → 0.1.0.0
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.