Domains list shows only one domain, even when the user has permissions to list_domains

Bug #1660602 reported by Radomir Dopieralski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Radomir Dopieralski

Bug Description

If a user has a domain token, only one domain will be shown in the domain list, even when that user has the idenity:list_domains permission.

That is because the assumption that a domain token means that the user has selected a domain context is no longer true for Keystone V3, but the code still uses it.

Changed in horizon:
milestone: none → ocata-rc2
importance: Undecided → High
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Patch here because Radomir is silly and typo'd his 'Closes-Bug:' statement. https://review.openstack.org/#/c/427125/

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

Reviewed: https://review.openstack.org/427125
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=1be065aed8e330c746f85f9600d2c60c4478a661
Submitter: Jenkins
Branch: master

commit 1be065aed8e330c746f85f9600d2c60c4478a661
Author: Radomir Dopieralski <email address hidden>
Date: Tue Jan 31 13:01:51 2017 +0100

    Use domain_context not effective domain to display domains list

    Use domain_context to decide whether to call domain_list or domain_get
    in the list of domains. Previous code used the user's effective domain
    instead, which is no longer the same thing with Keystone V3.

    Closes-Bug: #1660602

    Change-Id: Ie410d282c5b19a061fe83b496785f35bbcfad9ad

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/434656

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/ocata)

Reviewed: https://review.openstack.org/434656
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=30d0a31d41340d0ad340d12db3455156b04e71fc
Submitter: Jenkins
Branch: stable/ocata

commit 30d0a31d41340d0ad340d12db3455156b04e71fc
Author: Radomir Dopieralski <email address hidden>
Date: Tue Jan 31 13:01:51 2017 +0100

    Use domain_context not effective domain to display domains list

    Use domain_context to decide whether to call domain_list or domain_get
    in the list of domains. Previous code used the user's effective domain
    instead, which is no longer the same thing with Keystone V3.

    Closes-Bug: #1660602

    Change-Id: Ie410d282c5b19a061fe83b496785f35bbcfad9ad
    (cherry picked from commit 1be065aed8e330c746f85f9600d2c60c4478a661)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/434774

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 11.0.0.0rc2

This issue was fixed in the openstack/horizon 11.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/newton)

Reviewed: https://review.openstack.org/434774
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=ddb97d6885783918fb1b08076604eff6b1e91852
Submitter: Jenkins
Branch: stable/newton

commit ddb97d6885783918fb1b08076604eff6b1e91852
Author: Radomir Dopieralski <email address hidden>
Date: Tue Jan 31 13:01:51 2017 +0100

    Use domain_context not effective domain to display domains list

    Use domain_context to decide whether to call domain_list or domain_get
    in the list of domains. Previous code used the user's effective domain
    instead, which is no longer the same thing with Keystone V3.

    Closes-Bug: #1660602

    Change-Id: Ie410d282c5b19a061fe83b496785f35bbcfad9ad
    (cherry picked from commit 1be065aed8e330c746f85f9600d2c60c4478a661)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 10.0.3

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 12.0.0.0b1

This issue was fixed in the openstack/horizon 12.0.0.0b1 development milestone.

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.