[openstack-dev] Adding a new plug in to Quantum

Daisy F f.daisy25 at gmail.com
Wed Mar 6 23:21:42 UTC 2013


Hey,
        Thanks for the reply.I fixed it,it was because I did not include
the directory on the python path.But I have another question.


What is the format for API requests in quantum to the plug-in.I have looked
into the code.I cannot find the statement similar to this::

"GET /v2.0/networks?name=internal"

On Tue, Mar 5, 2013 at 11:51 AM, Sumit Naiksatam
<sumitnaiksatam at gmail.com>wrote:

> Did you add __init__.py to your "new_folder"?
>
> ~Sumit.
>
> On Tue, Mar 5, 2013 at 11:29 AM, Daisy F <f.daisy25 at gmail.com> wrote:
> > Hi,
> >      I wanted to add a simple plug-in to quantum.
> >
> > I did the following::
> >
> > 1)I created a new directory with the following path
> > /quantum/plugins/new_dir
> >
> > 2)Added a python script which prints the statement as a  debug statement
> > when create network is clicked on the dashboard.Name of the file is
> > ovs_quantum_plugin.py
> >
> > 3)In the /etc/quantum /quantum.conf file the following is replaced
> >
> > # Quantum plugin provider module
> >
> > core_plugin =
> > quantum.plugins.new_folder.ovs_quantum_plugin.OVSQuantumPluginV2
> >
> > 4)When I restart the quantum server :I see the following error
> >
> >
> > ERROR [quantum.common.config] Unable to load quantum from configuration
> file
> > /etc/quantum/api-paste.ini.
> > Traceback (most recent call last):
> >
> >  File
> >
> "/usr/lib/python2.7/dist-packages/quantum/openstack/common/importutils.py",
> > line 30, in import_class
> >     __import__(mod_str)
> > ImportError: No module named vello.ovs_quantum_plugin
> >
> >
> >
> > Can someone clearly explain the steps to add a plug in on to the quantum
> > service.
> >
> >
> > Thanks,
> > Daisy
> >
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130306/cc440e81/attachment.html>


More information about the OpenStack-dev mailing list