[keystone v3] Rally task's test user role setting failed

Bug #1595081 reported by LIU Yulong on 2016-06-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Medium
LIU Yulong

Bug Description

If the OpenStack env does not have a 'member' role, the rally task will get an WARNING:
WARNING rally.plugins.openstack.wrappers.keystone [-] Unable to set member role to created user.
and then task will stop due to the 401 Unauthorized error:
http://paste.openstack.org/show/520560/

This is because of the hard coding of UserGenerator:
https://github.com/openstack/rally/blob/master/rally/plugins/openstack/wrappers/keystone.py#L203

Some related discussion:
https://bugs.launchpad.net/rally/+bug/1582777/comments/8
https://bugs.launchpad.net/rally/+bug/1582777/comments/10

Bugs may be related:
https://bugs.launchpad.net/rally/+bug/1529584

LIU Yulong (dragon889) on 2016-06-22
Changed in rally:
assignee: nobody → LIU Yulong (dragon889)
LIU Yulong (dragon889) wrote :

Potential solutions:
1. add a 'keystone_default_role' settings to /etc/rally/rally.conf [users_context] section.
This is a sample and quick way, but it will affect all of the deployments with a totally same 'keystone_default_role'.

2. add a 'keystone_default_role' settings to each deployment config.
So when you create a deployment you will need to add some env/config_file like: OS_KEYSTONE_DEFAULT_ROLE = "user"
But maybe this will influence the existed deployments.

Andrey Kurilin (andreykurilin) wrote :

@LIU Yulong (dragon889)

It is better to use deployment config for such stuff, since this parameter can be different in different clouds.
It will not influence any existing deployments, since default value will be "member", so default behavior will not changed.

Changed in rally:
importance: Undecided → Medium
status: New → Triaged

Fix proposed to branch: master
Review: https://review.openstack.org/333124

Changed in rally:
status: Triaged → In Progress

Reviewed: https://review.openstack.org/333124
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=a3244da2eeebf2a4c529cb577514aa7a63f8c106
Submitter: Jenkins
Branch: master

commit a3244da2eeebf2a4c529cb577514aa7a63f8c106
Author: LIU Yulong <email address hidden>
Date: Thu Jun 23 13:19:48 2016 +0800

    Add default role name to rally config

    If the OpenStack env does not have a 'member' role, the
    rally task will get a WARNING: Unable to set member role
    to created user. And then task will stop due to the 401
    Unauthorized error.

    This patch adds default role to rally config. So for each,
    test, rally will create the test user with the set
    keystone_default_role.

    Closes-Bug: #1595081

    Change-Id: Ic97ce50f40d3a3e7f9e8fc6ef142c5465ab41a51

Changed in rally:
status: In Progress → Fix Released
summary: - Rally task's test user role setting failed
+ [keystone v3] Rally task's test user role setting failed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers