Comment 1 for bug 949491

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote : Re: Horizon tenant list call should be cached...

I'm going to treat this as a request for caching rather than a bug report about the requests in the middleware, since there's already a ticket for that: https://bugs.launchpad.net/horizon/+bug/942074

FWIW, that only makes one request for the tokens (it used to make multiple calls in many cases), however if you're on a page like the syspanel tenants list, the launch instance dialog, the create user dialog, or any other place that makes a separate call to populate a tenant chooser dropdown, etc. then you will see multiple calls and this is correct behavior under the current assumptions in the dashboard.

I've been thinking a lot about the caching problem, though, and it's not simple. We need to cut down on making this tenants call so many times, however we also don't want to find ourselves stuck in a case where a newly-created tenant is inaccessible. This is going to be a tricky task and should be addressed in Folsom.