<div dir="ltr">Try to put your plugin on <font face="courier new, monospace">/usr/lib/python2.7/dist-packages/quantum/plugins</font><font face="arial, helvetica, sans-serif">. Or you can make symbolic links to your plugin files.</font><div>
<font face="arial, helvetica, sans-serif"><br></font></div><div style><font face="arial, helvetica, sans-serif">Regards</font></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Filipe Manco<br><div><a href="http://about.me/fmanco" target="_blank">http://about.me/fmanco</a></div>
</div></div>
<br><br><div class="gmail_quote">2013/5/29 Julio Carlos Barrera Juez <span dir="ltr"><<a href="mailto:juliocarlos.barrera@i2cat.net" target="_blank">juliocarlos.barrera@i2cat.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi OpenStack community!<div><br></div><div>Our colleagues an me are trying to develop a Quantum plugin. We have not found official guidelines to achieve it, only related stuff like this: <a href="http://docs.openstack.org/trunk/openstack-network/admin/content/quantum_server.html" target="_blank">http://docs.openstack.org/trunk/openstack-network/admin/content/quantum_server.html</a>. We found that we need to implement 'quantum/quantum_plugin_base_v2.QuantumPluginBaseV2' (<a href="https://github.com/openstack/quantum/blob/stable/grizzly/quantum/quantum_plugin_base_v2.py" target="_blank">https://github.com/openstack/quantum/blob/stable/grizzly/quantum/quantum_plugin_base_v2.py</a>). We have an Ubuntu OpenStack instance. After developing a basic plugin, we placed it on our OpenStack instance plugins folder ('/usr/share/pyshared/quantum/plugins' in our case). We created a folder and placed inside our plugin with an empty '__init__.py' file. Then we edited Quantum config file ('/etc/quantum/quantum.conf' in our case):</div>
<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>...</div><div><div>#core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2</div></div>
<div><div>core_plugin = quantum.plugins.our_plugin_folder.our_plugin_file.OurPluginClass</div></div><div>...</div></blockquote><div><br></div><div><br></div><div>Then we restarted our OpenStack server (with 'sudo service quantum-server restart' in our case), but the log showed this error:</div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>ImportError: No module named our_plugin_folder.our_plugin_file.</div></blockquote><div><br></div><div><br></div><div>
We have verified the folder and file names.</div><div><br></div><div>What are our mistake? Where can we find more information about it?</div><div><br></div><div>Thank you in advance!</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>