[openstack-dev] [Savanna]Creating new plugin

Alexander Ignatov aignatov at mirantis.com
Fri Sep 13 15:00:55 UTC 2013


Hi Arindam,

It seems you forgot to do 'git add' on 
'savanna/plugins/mango/resources/core-default.xml'
Please do this on the other xml and resource files you are using in the 
mango plugin.

Regards,
Alexander Ignatov

On 9/13/2013 5:33 PM, Arindam Choudhury wrote:
> Hi,
>
> I am trying to provision hadoop0.20.203.0 with jdk6u45. So, I tweaked 
> savanna-image-elements and created a pre-installed vm image.
> Then I copied vanilla and edit it to create a new plugin named mango. 
> also to include the new plugin, I edited etc/savanna/savanna.conf as 
> follows:
>
> plugins=vanilla,mango
> [plugin:vanilla]
> plugin_class=savanna.plugins.vanilla.plugin:VanillaProvider
> [plugin:mango]
> plugin_class=savanna.plugins.mango.plugin:MangoProvider
>
> Then, When I try to start the savanna daemon I get the following error:
>
> # tools/install_venv
>   removing /root/savanna/.tox/log
> using tox.ini: /root/savanna/tox.ini
> using tox-1.6.1 from /usr/lib/python2.6/site-packages/tox/__init__.pyc
> GLOB start: packaging
> GLOB sdist-make: /root/savanna/setup.py
>   removing /root/savanna/.tox/dist
>   /root/savanna$ /usr/bin/python /root/savanna/setup.py sdist 
> --formats=zip --dist-dir /root/savanna/.tox/dist 
> >/root/savanna/.tox/log/tox-0.log
> GLOB finish: packaging after 3.06 seconds
> copying new sdistfile to 
> '/root/.tox/distshare/savanna-0.2.a26.g3a8ddfb.zip'
> venv start: getenv /root/savanna/.tox/venv
> venv reusing: /root/savanna/.tox/venv
> venv finish: getenv after 0.03 seconds
> venv start: installpkg 
> /root/savanna/.tox/dist/savanna-0.2.a26.g3a8ddfb.zip
> venv inst-nodeps: /root/savanna/.tox/dist/savanna-0.2.a26.g3a8ddfb.zip
> setting 
> PATH=/root/savanna/.tox/venv/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
>   /root/savanna$ /root/savanna/.tox/venv/bin/pip install --pre 
> /root/savanna/.tox/dist/savanna-0.2.a26.g3a8ddfb.zip -U --no-deps 
> >/root/savanna/.tox/venv/log/venv-10.log
> venv finish: installpkg after 2.85 seconds
> venv start: runtests
> venv runtests: commands[0] | python --version
> setting 
> PATH=/root/savanna/.tox/venv/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
>   /root/savanna$ /root/savanna/.tox/venv/bin/python --version
> Python 2.6.6
> venv finish: runtests after 0.00 seconds
> _________________________________________________________________ 
> summary __________________________________________________________________
>   venv: commands succeeded
>   congratulations :)
>
>
> # tox -evenv -- savanna-api --config-file etc/savanna/savanna.conf -d
> GLOB sdist-make: /root/savanna/setup.py
> venv inst-nodeps: /root/savanna/.tox/dist/savanna-0.2.a26.g3a8ddfb.zip
> venv runtests: commands[0] | savanna-api --config-file 
> etc/savanna/savanna.conf -d
> /root/savanna/.tox/venv/lib/python2.6/site-packages/sqlalchemy/engine/strategies.py:117: 
> SADeprecationWarning: The 'listeners' argument to Pool (and 
> create_engine()) is deprecated.  Use event.listen().
>   pool = poolclass(creator, **pool_args)
> /root/savanna/.tox/venv/lib/python2.6/site-packages/sqlalchemy/pool.py:160: 
> SADeprecationWarning: Pool.add_listener is deprecated.  Use event.listen()
>   self.add_listener(l)
> 2013-09-13 15:28:23.443 4783 DEBUG savanna.plugins.base [-] List of 
> requested plugins: ['vanilla', 'mango'] _load_all_plugins 
> /root/savanna/.tox/venv/lib/python2.6/site-packages/savanna/plugins/base.py:113
> 2013-09-13 15:28:23.501 4783 CRITICAL savanna [-] [Errno 2] No such 
> file or directory: 
> '/root/savanna/.tox/venv/lib/python2.6/site-packages/savanna/plugins/mango/resources/core-default.xml'
> ERROR: InvocationError: '/root/savanna/.tox/venv/bin/savanna-api 
> --config-file etc/savanna/savanna.conf -d'
> _________________________________________________________________ 
> summary __________________________________________________________________
> ERROR:   venv: commands failed
>
>
>
>
> _______________________________________________
> 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/20130913/717691cd/attachment.html>


More information about the OpenStack-dev mailing list