<div dir="ltr">Hi Kevin, <div><br></div><div>Are you doing multiple user per tenant(Swift account) ? </div><div>or </div><div>Are you doing per tenant (Swift account) per user ? </div><div><br></div><div><br></div><div>Does account-quota middleware help ? </div><div><a href="https://github.com/openstack/swift/blob/master/swift/common/middleware/account_quotas.py">https://github.com/openstack/swift/blob/master/swift/common/middleware/account_quotas.py</a><br></div><div><br></div><div><br></div><div>I don't really understand "<span style="font-size:14px"> </span><span style="font-size:14px">I creates a new tenant for each new shared container, and I add the users with a 'member' role. So, an user can list all tenants which he has access." </span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">Perhaps you can give some specific examples. </span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">Thanks // Hugo</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-27 21:17 GMT+08:00 Kévin Bernard-Allies <span dir="ltr"><<a href="mailto:kbernard-allies@bajoo.fr" target="_blank">kbernard-allies@bajoo.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
<br>
I want to set quotas associated to keystone users.<br>
<br>
In my configuration, an user can create swift containers, and share them with other users.<br>
For now, I creates a new tenant for each new shared container, and I add the users with a 'member' role. So, an user can list all tenants which he has access.<br>
I want to limit the total space an user can use, counting all containers which he has access.<br>
<br>
<br>
Unfortunately, I've seen nothing who can help me to do that.<br>
<br>
A solution could be to create a Swift middleware, that will ask Keystone the list of tenants the user belongs to, find the containers corresponding, and sum their sizes. Even with caching, I think this will have bad performances.<br>
<br>
Another solution could be to use the Swift StatD logging, although I'm not usre of what I can do with it.<br>
<br>
<br>
Has anyone an use case similar to mine ? What are your solutions ?<br>
What solution would be the easiest to implement ?<br>
<br>
<br>
thanks<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div><br></div>