<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Aug 19, 2013 at 6:06 AM, Steven Hardy <span dir="ltr"><<a href="mailto:shardy@redhat.com" target="_blank">shardy@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sun, Aug 18, 2013 at 07:02:04PM +0200, Matthieu Huin wrote:<br>
> Hi Steve,<br>
><br>
> It might be a bit late for this, but here's a script I wrote when experimenting with trusts: <a href="https://github.com/mhuin/keystone_trust/blob/master/tests/swift_example.sh" target="_blank">https://github.com/mhuin/keystone_trust/blob/master/tests/swift_example.sh</a><br>

><br>
> I hope it'll help you.<br>
<br>
</div>Thanks for this!!<br>
<br>
Exactly what I was looking for and has enabled me to solve my problem (my test code was broken).<br>
<br>
I've marked this bug invalid:<br>
<br>
<a href="https://bugs.launchpad.net/keystone/+bug/1213340" target="_blank">https://bugs.launchpad.net/keystone/+bug/1213340</a><br>
<br>
Interestingly, my debugging has highlighted a slightly non-obvious issue with<br>
the creation and consumption of a trust which is probably worth mentioning here:<br>
<br>
The docs state ""A project_id may not be specified without at least one role,<br>
and vice versa.", however /OS-TRUST/trusts *does* allow you to create a trust<br>
with an empty roles list.<br>
<br>
This results in 401 responses whenever you try to consume the trust, which is<br>
not exactly obvious until you realize what's happening..<br>
<br>
Can I ask if this is deliberate, or is it a bug in the trusts create code?<br></blockquote><div><br></div><div>That certainly sounds like a bug, given that it directly conflicts with the documented behavior.</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
It seems odd to allow creation of a trust which is seemingly useless and can<br>
never be consumed?<br></blockquote><div><br></div><div>++</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks all for your help working through this!<br>
<div class="HOEnZb"><div class="h5"><br>
Steve<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div>-Dolph
</div></div>