<div>What advantage can we get from putting multiple drivers into one flavor over strictly limit one flavor one driver (or whatever it is called).</div><div><br></div><div>Thanks,<br>Rui</div><div><br></div><div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Kevin Benton";<blak111@gmail.com>;</div><div><b>Send time:</b> Wednesday, Feb 3, 2016 8:55 AM</div><div><b>To:</b> "OpenStack Development Mailing List (not for usage questions)"<openstack-dev@lists.openstack.org>; <wbr></div><div></div><div><b>Subject: </b> Re: [openstack-dev] [neutron] - L3 flavors and issues with usecases for multiple L3 backends</div></div><div><br></div><p dir="ltr">Choosing from multiple drivers for the same flavor is scheduling. I didn't mean automatically selecting other flavors. </p>
<div class="gmail_quote">On Feb 2, 2016 17:53, "Eichberger, German" <<a href="mailto:german.eichberger@hpe.com">german.eichberger@hpe.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Not that you could call it scheduling. The intent was that the user could pick the best flavor for his task (e.g. a gold router as opposed to a silver one). The system then would ¡°schedule¡± the driver configured for gold or silver. Rescheduling wasn¡¯t really a consideration¡­<br>
<br>
German<br>
<br>
From: Doug Wiegley <<a href="mailto:dougwig@parksidesoftware.com">dougwig@parksidesoftware.com</a><mailto:<a href="mailto:dougwig@parksidesoftware.com">dougwig@parksidesoftware.com</a>>><br>
Reply-To: "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><mailto:<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>>><br>
Date: Monday, February 1, 2016 at 8:17 PM<br>
To: "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><mailto:<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>>><br>
Subject: Re: [openstack-dev] [neutron] - L3 flavors and issues with use cases for multiple L3 backends<br>
<br>
Yes, scheduling was a big gnarly wart that was punted for the first pass. The intention was that any driver you put in a single flavor had equivalent capabilities/plumbed to the same networks/etc.<br>
<br>
doug<br>
<br>
<br>
On Feb 1, 2016, at 7:08 AM, Kevin Benton <<a href="mailto:blak111@gmail.com">blak111@gmail.com</a><mailto:<a href="mailto:blak111@gmail.com">blak111@gmail.com</a>>> wrote:<br>
<br>
<br>
Hi all,<br>
<br>
I've been working on an implementation of the multiple L3 backends RFE[1] using the flavor framework and I've run into some snags with the use-cases.[2]<br>
<br>
The first use cases are relatively straightforward where the user requests a specific flavor and that request gets dispatched to a driver associated with that flavor via a service profile. However, several of the use-cases are based around the idea that there is a single flavor with multiple drivers and a specific driver will need to be used depending on the placement of the router interfaces. i.e. a router cannot be bound to a driver until an interface is attached.<br>
<br>
This creates some painful coordination problems amongst drivers. For example, say the first two networks that a user attaches a router to can be reached by all drivers because they use overlays so the first driver chosen by the framework works  fine. Then the user connects to an external network which is only reachable by a different driver. Do we immediately reschedule the entire router at that point to the other driver and interrupt the traffic between the first two networks?<br>
<br>
Even if we are fine with a traffic interruption for rescheduling, what should we do when a failure occurs half way through switching over because the new driver fails to attach to one of the networks (or the old driver fails to detach from one)? It would seem the correct API experience would be switch everything back and then return a failure to the caller trying to add an interface. This is where things get messy.<br>
<br>
If there is a failure during the switch back, we now have a single router's resources smeared across two drivers. We can drop the router into the ERROR state and re-attempt the switch in a periodic task, or maybe just leave it broken.<br>
<br>
How should we handle this much orchestration? Should we pull in something like taskflow, or maybe defer that use case for now?<br>
<br>
What I want to avoid is what happened with ML2 where error handling is still a TODO in several cases. (e.g. Any post-commit update or delete failures in mechanism drivers will not trigger a revert in state.)<br>
<br>
1. <a href="https://bugs.launchpad.net/neutron/+bug/1461133" rel="noreferrer" target="_blank">https://bugs.launchpad.net/neutron/+bug/1461133</a><br>
2. <a href="https://etherpad.openstack.org/p/" rel="noreferrer" target="_blank">https://etherpad.openstack.org/p/</a><<a href="https://etherpad.openstack.org/p/neutron-modular-l3-router-plugin-use-cases" rel="noreferrer" target="_blank">https://etherpad.openstack.org/p/neutron-modular-l3-router-plugin-use-cases</a>>neutron-modular-l3-router-plugin-use-cases<<a href="https://etherpad.openstack.org/p/neutron-modular-l3-router-plugin-use-cases" rel="noreferrer" target="_blank">https://etherpad.openstack.org/p/neutron-modular-l3-router-plugin-use-cases</a>><br>
<br>
--<br>
Kevin Benton<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org">OpenStack-dev-request@lists.openstack.org</a><mailto:<a href="mailto:OpenStack-dev-request@lists.openstack.org">OpenStack-dev-request@lists.openstack.org</a>>?subject:unsubscribe<br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div></div>