<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><p>On March 19, 2016 at 19:13:33, Erlon Cruz (<a href="mailto:sombrafam@gmail.com" target="_blank">sombrafam@gmail.com</a>) wrote:</p>
<blockquote type="cite"><span>
<div>
<div></div>
<div>

<div dir="ltr">Hi Brent,
<div><br>
</div>
<div>Unfortunately that is not possible. The feature mentioned by Vahric, driver_filter, is a 'driver' custom filter capability. I.e., the vendor driver must implement that in order to be possible to use (surely, nothing holds you from implementing in the driver
 if your vendor does not supports it). You are trying to filter based in the volume size, the exiting filters, filter based in the host's available size not the volume. </div>
<div><br>
</div>
<div>About the tenant filtering, the closest solution I can think of is is you create a volume type associated with the backend you want to cast volumes o the tenant, and then remove the permissions of all other available volume-types so, the tenant only sees
 that volume type.</div>
<div><br>
</div>
<div>Can you give the reason why you need to filter like that? This could be a good addition to future Cinder features.</div>
<div><br>
</div>
<div>Erlon  </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Feb 25, 2016 at 7:57 PM, Brent Troge <span dir="ltr">
<<a href="mailto:brenttroge2016@gmail.com" target="_blank">brenttroge2016@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>yeah, i have read through those, plus i did some reading through the actual code of all kilo/stable cinder filters<br>
<br>
</div>
i any case i think i have a good path forward, just need to start testing to understand this a bit more.<br>
</div>
<br>
thanks for taking the time to assist.<br>
 <br>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Feb 25, 2016 at 9:13 AM, Vahric Muhtaryan <span dir="ltr">
<<a href="mailto:vahric@doruk.net.tr" target="_blank">vahric@doruk.net.tr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>I found this </div>
<div><br>
</div>
<div><a href="http://docs.openstack.org/admin-guide-cloud/blockstorage-driver-filter-weighing.html" target="_blank">http://docs.openstack.org/admin-guide-cloud/blockstorage-driver-filter-weighing.html</a></div>
<div><br>
</div>
<div>And this </div>
<div><br>
</div>
<div><a href="https://blueprints.launchpad.net/cinder/+spec/filtering-weighing-with-driver-supplied-functions" target="_blank">https://blueprints.launchpad.net/cinder/+spec/filtering-weighing-with-driver-supplied-functions</a></div>
<div><br>
</div>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span><span style="font-weight:bold">From:</span> Brent Troge <<a href="mailto:brenttroge2016@gmail.com" target="_blank">brenttroge2016@gmail.com</a>><br>
<span style="font-weight:bold">Date:</span> Thursday 25 February 2016 at 16:17<br>
<span style="font-weight:bold">To:</span> "<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>" <<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject:</span> [Openstack] Cinder Multiple Backends - Filter On Tenant<br>
</span></div>
<div>
<div>
<div><br>
</div>
<div dir="ltr">
<div>
<div>I need the cinder filter to support directing volumes to a specific backend based on tenant id and volume size.<br>
</div>
</div>
<div><br>
</div>
<div>Something like:<br>
<br>
</div>
<div># tenant specific backend<br>
</div>
<div>[backend-1]<br>
</div>
<div>filter = (volume_size > 100G) && (tenant_id == abc123)<br>
<br>
# all others<br>
<div>[backend-2]<br>
</div>
filter = (volume_size < 100G)<br>
<br>
<br>
</div>
<div><br>
</div>
<div>Is this possible with the current set of kilo stable cinder filters ?<br>
</div>
<div><br>
</div>
<div>Thanks in advance.<br>
</div>
<div><br>
 <br>
</div>
</div>
</div>
</div>
_______________________________________________ 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> Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">
openstack@lists.openstack.org</a> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" 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" rel="noreferrer" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
</blockquote>
</div>
<br>
</div>
_______________________________________________ <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>
</div>
</div>
</span></blockquote>
</div>

</blockquote></div><div class="gmail_default" style="font-family:monospace,monospace">​Hi Erlon,</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Cinder has the ability to set access rights on Volume Types.  I haven't looked at it in a while, but what you could do is set the type up based on the backend, and then apply access to the tenant you want there.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">One thing I guess we'd need to consider is different default types per/tenant which seems like it would be a useful feature if there's not already a way to make it work.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">John</div><br></div></div>