Unable to set "scope" for dynamic credentials

Bug #1917168 reported by Michael Johnson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Ghanshyam Mann

Bug Description

Tempest allows you to create credentials with a specific list of roles using the "credentials" list:

credentials = ['admin', 'primary',
              ['lb_member', CONF.load_balancer.member_role],
              ['lb_member2', CONF.load_balancer.member_role],
              ['lb_admin', CONF.load_balancer.admin_role]]

Now with token scoping in keystone, we need to be able to set a custom scope for these credentials as well.

For example, the 'lb_admin' credential (service specific, cross-project admin) needs the "system" scope to see the cross-project objects.

Currently in tempest there is no way (official) to specify the scope on these credentials.

To be able to test the full matrix of RBAC personas, we need to enhance the "credentials" list to allow the specification of the token scope for the credential.

Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

this is left over from system scope support in Tempest. We need to add scope support in get_creds_by_roles also.

Changed in tempest:
status: New → Triaged
assignee: nobody → Ghanshyam Mann (ghanshyammann)
Revision history for this message
Martin Kopec (mkopec) wrote :

addressed by: https://review.opendev.org/c/openstack/tempest/+/778342 (seems the bot responsible for updating LPs is down)

Revision history for this message
Michael Johnson (johnsom) wrote :

Thanks for the fast turn around on this! Highly appreciated (though now I have more work to do, grin).

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tempest 26.1.0

This issue was fixed in the openstack/tempest 26.1.0 release.

Revision history for this message
Martin Kopec (mkopec) wrote :

https://review.opendev.org/c/openstack/tempest/+/778342 got merged .. also the fix is part of Tempest 26.1.0 (see the previous comment)

Changed in tempest:
status: Triaged → Fix Released
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.