Hi,<div><br></div><div>I have been following this thread, and I agree with the need of allowing Nova to access information about internals of the Quantum plugin so that it's allowed to plug interfaces using the appropriate driver.</div>
<div>I think the APIs proposed by Gary are suitable, although the nature of the binding object should be fleshed out a little bit better. Also I think Kyle has a good point that this information should be per-port, not per-network, as in some cases there will be port-specific parameter that needs to be passed into the vif driver. The trade-off here is that instead of 1 call per network there will be 1 call per port. The /port/<port-id>/binding syntax in theory also allows for retrieving logical port and binding info in one call.</div>
<div><br></div><div>Those APIs can easily be structured as admin-only; however we need to keep in mind that at the moment nova-quantum interaction is performed within the tenant context. We can either change this logic and say that Nova wil always have admin access to Quantum, or that we use an elevated context only for fetching port binding details. To this aim I would think about adding a "service" role to Quantum, which should be used specifically for retrieving binding details.</div>
<div><br></div><div>However, I am now reading that there might be use cases in which nova pushes into back into Quantum concerning the way a VIF has been plugged. I am failing at envisioning such use case, and it would be great if you could shed some light on it. I am interested in this because one of Quantum's goals was to provide a clean separation between compute and networking services. It seems that entanglement between the two it's now crawling back. Personally, I would let Quantum figure out binding information once the VIF is plugged, and keep the VIF plugging API as GET only.</div>
<div>While VIF creation is clearly a task which pertains to the compute service, VIF plugging is arguably borderline, and hence it's more than understandable that there are different valuable approaches and solutions.</div>
<div><br></div><div>Salvatore</div><div><br><div class="gmail_quote">On 7 November 2012 10:08, Gary Kotton <span dir="ltr"><<a href="mailto:gkotton@redhat.com" target="_blank">gkotton@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 11/06/2012 11:58 PM, Ian Wells wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 6 November 2012 19:39, Gary Kotton<<a href="mailto:gkotton@redhat.com" target="_blank">gkotton@redhat.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
GET /network-implementation-<u></u>details/<net-id><br>
</blockquote>
A minor quibble, but these commands will probably change the state on<br>
the host that you're getting an attachment for for (or, at least, it<br>
would the way I would do it - you do the call, and e.g. a bridge pops<br>
up and Nova knows where to find it by the return of the call). If<br>
that's the case, it is a POST rather than a GET as you're creating<br>
something.<br>
</blockquote>
<br></div>
I need to update the blueprint. The idea in general is to have something like<br>
<br>
GET /port/<id>/binding<br>
and<br>
PUT /port/<id>/binding/<something><br>
<br>
This will enable the information to be passed to Quantum.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm sure you could do it the other way around (GET the details of how<br>
to connect to the network and then do the work in Nova to make an<br>
endpoint that the hypervisor could use) but I prefer that the work of<br>
buggering about with the networking remained entirely within Quantum.<br>
This seems eminently sensible for PCI passthrough in particular, where<br>
the call would hand over the details of the card to be attached and<br>
return that it had been attached - versus bridge creation, where you'd<br>
probably say 'give me a bridge' and be told the details of the<br>
arbitrarily named bridge you'd just had created.<br>
</blockquote>
<br></div>
I would hope that the above PUT command enables Nova to provide this information to Quantum.<br>
<br>
Each plugin has its way of allocating and managing the resources. Some may be done via agents, others may be done directly in Nova. It is allo debatible whether this is good or bad. At this stage I would like to provide an API that can ensure that we have our bases covered for the interim period and the long run.<div class="im HOEnZb">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The options seem to be:<br>
- be explicit about which port we're attaching (and, presumably, that<br>
a port can only be attached once)<br>
- implicitly create a port iff you attach to a network, use an<br>
existing port otherwise<br>
- drop ports altogether, or replace them with these attachments that<br>
we're talking about right now (get a 'realised' attachment point and<br>
you have effectively added a port to the network, after all).<br>
<br>
</blockquote>
<br>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</div></div></blockquote></div><br></div>