commit eba2d7fe08c624904bdd9d272353d3d730fd0156
Author: Jimmy McCrory <email address hidden>
Date: Tue May 10 13:26:25 2016 -0700
Support users without projects in keystone library
Update the ensure_user, ensure_user_role, and ensure_group_role commands
and dependent functions to allow creation of and role assignment to a
user without specifying a project.
This will allow use of the keystone library for creating users, such as
the heat stack admin, within only a domain.
Since a role can only get granted to either a project or domain at one
time, only attempt to grant the role within the project if both are
provided.
Notifications of state changes for the ensure role commands have also
been fixed.
Partial-Bug: 1579612
Change-Id: I6a132e5407c9881a047037b85bd6e25b85c0d8a1
(cherry picked from commit 07d600dcff3aa699a32c5f7b049e54016d53919a)
Reviewed: https:/ /review. openstack. org/331343 /git.openstack. org/cgit/ openstack/ openstack- ansible- plugins/ commit/ ?id=eba2d7fe08c 624904bdd9d2723 53d3d730fd0156
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit eba2d7fe08c6249 04bdd9d272353d3 d730fd0156
Author: Jimmy McCrory <email address hidden>
Date: Tue May 10 13:26:25 2016 -0700
Support users without projects in keystone library
Update the ensure_user, ensure_user_role, and ensure_group_role commands
and dependent functions to allow creation of and role assignment to a
user without specifying a project.
This will allow use of the keystone library for creating users, such as
the heat stack admin, within only a domain.
Since a role can only get granted to either a project or domain at one
time, only attempt to grant the role within the project if both are
provided.
Notifications of state changes for the ensure role commands have also
been fixed.
Partial-Bug: 1579612 1a047037b85bd6e 25b85c0d8a1 9a32c5f7b049e54 016d53919a)
Change-Id: I6a132e5407c988
(cherry picked from commit 07d600dcff3aa69