The three possible solutions that I can see at the moment are:<div><br></div><div><ol><li>Change the status return value (which seems risky, depending on how this is used)</li><li>Put the projectid into the EC2 tags (which would mean getting shot by the 'metadata mafia')</li>
<li>Support filtering (which helps Ryan, but is really just side-stepping the issue)</li></ol><div><br></div></div><div>I'm looking into doing #3.</div><div><br></div><div><br clear="all">Justin<br><br><br>
<br><br><div class="gmail_quote">On Thu, Mar 10, 2011 at 3:56 PM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com">jaypipes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a feeling that authn/authz will try to make this more<br>
consistent, but that won't be landing until after Cactus.<br>
<font color="#888888"><br>
-jay<br>
</font><div><div></div><div class="h5"><br>
On Thu, Mar 10, 2011 at 6:47 PM, Ryan Lane <<a href="mailto:rlane@wikimedia.org">rlane@wikimedia.org</a>> wrote:<br>
> This is in regards to lp732924.<br>
><br>
> There currently isn't any simple way to know which resources are in<br>
> which project. Most resources return the project via some attribute:<br>
><br>
> * Instances: ownerId<br>
> * Addresses: instanceId<br>
> * Security Groups: ownerId<br>
><br>
> Volumes return an owner via status, but it's the user, not the project.<br>
><br>
> This makes it difficult to handle things in frontends, as certain<br>
> queries may return resources from multiple projects.<br>
><br>
> Is there any way that we can add this information to the EC2 API in a<br>
> somewhat consistent way (such as via a new attribute)? If not, is it<br>
> at least possible for all the resources to return the project in some<br>
> way I can parse out in a dirty hackish way (like using status in<br>
> volumes)?<br>
><br>
> Filters would help out here, in that I could specifically search for a<br>
> project; however, from a performance perspective, I'd like to be able<br>
> to search for project x, y, and z, then filter accordingly in the<br>
> frontend when necessary as well.<br>
><br>
> - Ryan Lane<br>
><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>
><br>
<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>
</div></div></blockquote></div><br></div>