<br><br><div class="gmail_quote">On Thu, Mar 8, 2012 at 2:46 PM, Jason Hedden <span dir="ltr"><<a href="mailto:jhedden@mcs.anl.gov">jhedden@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        It seems a little odd that the mapping of users to roles is stored in a python dictionary within a SQL table.  With this data structure it would be more efficient and flexible if the data was stored in a table similarly to the previous version of Keystone.  Why not let the database do its job?<br>

<br>
You can view a snippet of the Keystone metadata table @ <a href="http://paste.openstack.org/show/7552/" target="_blank">http://paste.openstack.org/show/7552/</a></blockquote><div><br></div><div>The current data access patterns don't support a need to index that data, if at some point we need to index that more than we need the scalability and flexibility afforded by using simple primary key lookups then we can change it, but limiting the scope of what it is possible to do increases the flexibility of what backends are possible, so I intend to keep the data access patterns as simple and few as possible.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
I came across this while trying to list the roles assigned to users, which I still don't know how to do via the keystone client utility. Is this even possible?<br></blockquote><div><br></div><div>Well, to clarify that statement a bit, roles exist on user-tenant pairs, so you would list the roles for a user-tenant pair.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Jason Hedden<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</font></span></blockquote></div><br>