← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1772345] Re: DEFAULT_SERVICE_REGIONS overrides services_region cookie

 

Reviewed:  https://review.openstack.org/571086
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=88fb01884010758d302f651b2525d96132326db1
Submitter: Zuul
Branch:    master

commit 88fb01884010758d302f651b2525d96132326db1
Author: Adrian Turjak <adriant@xxxxxxxxxxxxxxx>
Date:   Wed May 30 15:49:04 2018 +1200

    Rework DEFAULT_SERVICE_REGIONS
    
    DEFAULT_SERVICE_REGIONS is cumbersome when you have
    more than one keystone endpoint and all you want to do
    is set a global default service region.
    
    This adds '*' as an optional fallback key to mean global default.
    If an endpoint matches it will take precedence over the '*' value.
    
    This also fixes the precedence order for DEFAULT_SERVICE_REGIONS
    so that a user controlled cookie is used instead when that cookie
    is valid for the given catalog. This changes the way the setting
    works, but retains the intended result the setting was originally
    intended for.
    
    Change-Id: Ieefbd642d853fcfcf22a17d9edcc7daae72790a4
    blueprint: global-default-service-region
    Closes-Bug: #1772345
    Related-Bugs: #1359774 #1703390


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1772345

Title:
  DEFAULT_SERVICE_REGIONS overrides services_region cookie

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  DEFAULT_SERVICE_REGIONS makes it sound like it is setting default
  regions when a services_region cookie isn't present, when in fact it
  takes precedence over a cookie.

  This is terrible UX because a user that can change to another valid
  region is forced on login to the region always defined in
  DEFAULT_SERVICE_REGIONS, and then always change manually to the region
  they want every time.

  The cookie, a user controlled value, should always take precedence
  over a 'default' value. If we want to allow a forceful override then
  it should be called something else such as FORCED_SERVICE_REGIONS.

  The settings don't even make this behavior clear, which further makes me think this is a bug or an unconsidered part of the implementation:
  https://docs.openstack.org/horizon/latest/configuration/settings.html#default-service-regions

  
  We should change the precedence to:
  1. services_region cookie
  2. DEFAULT_SERVICE_REGIONS endpoint
  3. any valid region from the catalog

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1772345/+subscriptions


References