[openstack-dev] [Neutron] neutron_url_timeout

2014-07-07 Thread Stefan Apostoaie
Hi,

I'm using openstack icehouse to develop a neutron plugin and I have a issue
with the timeouts the neutronclient gives to nova. For me the create_port
neutron API request takes a lot of time when hundreds of instances are
involved and nova gets a timeout. That's why I tried increasing the
neutron_url_timeout property to 60 seconds in nova.conf. The problem is
this increase doesn't change anything, the create_port request still
timeouts after 30 seconds.
I looked in the neutronclient code (neutronclient.client.HTTPClient) and
saw that  the timeout value that is being set is not used anywhere. I
expected a reference in the _cs_request but couldn't find one. Also from
what I can understand from the create_port flow the **kwargs don't contain
the timeout parameter. Could this be a bug?

Regards,
Stefan
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Neutron] Find the compute host on which a VM runs

2013-11-21 Thread Stefan Apostoaie
Hello again,

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': >. If I print out the port object I have 'binding:host_id':
None.

What other plugins are doing:
1. extend the quantum.db.portbindings_db.PortBindingMixin class
2. call the _process_portbindings_create_and_update method in create/update
port
What I cannot find is where the portbindings.HOST_ID attribute is being set.

Regards,
Stefan


On Fri, Nov 15, 2013 at 10:57 PM, Mark McClain
wrote:

> Stefan-
>
> 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.
>
> mark
>
> On Nov 15, 2013, at 9:55 AM, Stefan Apostoaie  wrote:
>
> > Hello,
> >
> > 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.
> > 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?
> >
> > Regards,
> > Stefan Apostoaie
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Neutron] Find the compute host on which a VM runs

2013-11-15 Thread Stefan Apostoaie
Hello,

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.
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?

Regards,
Stefan Apostoaie
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev