Post login services region is not set

Bug #2040455 reported by Gabriel Samfira
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Unassigned

Bug Description

In a multi-region OpenStack deployment, horizon fails to remember the selected services region post-login. The cookie is properly set, but it's never used in the login_view to set the request.session['services_region'] value. The result is that the selected region is reset to whichever region is first in the list, even though the services_region cookie is different. Clicking on the available regions and switching to the correct one, will leave the services_region cookie intact, but properly set the value in the session.

This causes confusion for users that log in and find themselves on a different region than previously selected.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/horizon/+/899228

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.opendev.org/c/openstack/horizon/+/899228
Committed: https://opendev.org/openstack/horizon/commit/66b5713296e7bd9caabe8dd84bde644435b7712a
Submitter: "Zuul (22348)"
Branch: master

commit 66b5713296e7bd9caabe8dd84bde644435b7712a
Author: Gabriel Adrian Samfira <email address hidden>
Date: Wed Oct 25 10:37:35 2023 +0300

    Properly set session value for services_region

    Currently, the value stored in the services_region cookie is ignored
    when logging into horizon. This causes confusion for users that have
    previously selected one region, to find themselves in a different
    region after their token expires and are forced to log in again.

    This change sets the services_region session value to the value present
    in the cookie, with a fallback to the login region.

    Closes-bug: #2040455

    Change-Id: I051648844bf8dffce792ff553e9949285b1be6d4
    Signed-off-by: Gabriel Adrian Samfira <email address hidden>

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 24.0.0

This issue was fixed in the openstack/horizon 24.0.0 release.

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.