<div dir="ltr">Hello again,<div><br></div><div>I studied the portbindings extension (the quantum.db.portbindings_db and quantum.extensions.portbindings modules). However it's unclear for me who sets the portbindings.HOST_ID attribute. I ran some tests with OVS: called quantum port-create command and the OVSQuantumPluginV2.create_port method got called and it had 'binding:host_id': <object object at <memory_address>>. If I print out the port object I have 'binding:host_id': None. </div>
<div><br></div><div>What other plugins are doing:</div><div>1. extend the quantum.db.portbindings_db.PortBindingMixin class</div><div>2. call the _process_portbindings_create_and_update method in create/update port</div><div>
What I cannot find is where the portbindings.HOST_ID attribute is being set.<br></div><div><br></div><div>Regards,</div><div>Stefan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 10:57 PM, Mark McClain <span dir="ltr"><<a href="mailto:mark.mcclain@dreamhost.com" target="_blank">mark.mcclain@dreamhost.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Stefan-<br>
<br>
Your workflow is very similar to many other plugins.  You’ll want to look at implementing the port binding extension in your plugin.  The port binding extension allows Nova to inform Neutron of the host where the VM is running.<br>

<br>
mark<br>
<div><div class="h5"><br>
On Nov 15, 2013, at 9:55 AM, Stefan Apostoaie <<a href="mailto:iosstef@gmail.com">iosstef@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I'm creating a Neutron/Quantum plugin to work with a networking controller that takes care of the configuration of the virtual networks. Basically what we are doing is receive the API calls and forward them to our controller to run the required configuration on the compute hosts.<br>

> What I need to know when a create_port call is made to my plugin is on which compute host the VM is created (so that our controller will run the configuration on that host). Is there a way to find out this information from the plugin?<br>

><br>
> Regards,<br>
> Stefan Apostoaie<br>
</div></div>> _______________________________________________<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>
<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>
</blockquote></div><br></div>