<div dir="ltr">Hi Ivar,<div><br></div><div>Please see some comments inline.<br>For this kind of questions it is probably better to use <a href="http://ask.openstack.org">ask.openstack.org</a> than the mailing list - this might give you a quicker, and more thorough, response.</div>
<div><br></div><div>Salvatore<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 April 2013 20:14, Ivar Lazzaro <span dir="ltr"><<a href="mailto:ivarlazzaro@gmail.com" target="_blank">ivarlazzaro@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">Hi,<div><br></div><div>I wonder if someone can help me with some basic questions about a typical Quantum plugin workflow.</div>
<div>I got the general lines from the following link:</div><div><br></div><div><a href="http://docs.openstack.org/api/openstack-network/2.0/content/Theory.html" target="_blank">http://docs.openstack.org/api/openstack-network/2.0/content/Theory.html</a><br clear="all">
<div><br></div><div>But there are some implementation aspects which are not clear about point 3 (Boot VM and attach it to the network):</div><div><br></div><div>referring to: <a href="https://github.com/openstack/quantum/blob/master/quantum/quantum_plugin_base_v2.py" target="_blank">https://github.com/openstack/quantum/blob/master/quantum/quantum_plugin_base_v2.py</a></div>
<div><br></div><div>1. How does nova "ask quantum to attach a compute VM nic to a specific network"? calling the "create_port" (or "update_port") method?</div></div></div></blockquote><div><br>
</div><div style>Nova uses the quantum API for creating ports using, as you say methods such as POST /v2.0/ports and PUT /v2.0/ports.</div><div style>All of this happens in nova.network.quantumv2.api</div><div style>Nova also has APIs for security groups and floating IPs; when Quantum is enabled these calls are just proxied to the quantum server.</div>
<div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div>
<div>2. If the "device" indicates which entity has to be attached to a particular network, then what does device_owner indicates somehow the entity "type" and the ID refers to the entity itself (i.e. DB id for a compute VM). Is that correct?</div>
</div></div></blockquote><div><br></div><div style>Yes, it's pretty much correct. device_owner for VM VIFs is currently always "compute:nova"</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>
<div><br></div><div>3. If I got the "Boot VM and attach it to the network" workflow completely wrong, then what is the right one (from the implementation point of view)? </div><div><br></div></div></div></blockquote>
<div><br></div><div style>I think you had the workflow right. If you have a look a the API class previously mentioned this should be even clearer.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div></div><div>
Regards,<span class="HOEnZb"><font color="#888888"><br>-- </font></span></div><span class="HOEnZb"><font color="#888888">Ivar.
</font></span></div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div></div></div>