Custom Search

Tuesday, August 12, 2014

ImportError: No module named neutron_plugin_contrail.plugins.opencontrail.contrail_plugin_core

https://github.com/dsetia/devstack

Fix-1
====
a)
Edit "localrc" and uncomment following line, then remove "/opt/stack" and run "./unstack" and "./stack"
#vim localrc
CONTRAIL_REPO_PROTO=https


b)
#sudo rm -rf /opt/stack
#./unstack
#./stack

Fix-2
====
a)
Goto devstack folder and change Q_PLUGIN_CLASS in the "devstack/contrail/localrc-ci" file

#vim ~/devstack/contrail/localrc-ci
Q_PLUGIN_CLASS=neutron.plugins.opencontrail.contrail_plugin_core.NeutronPluginContrailCoreV2
with
Q_PLUGIN_CLASS=neutron.plugins.opencontrail.contrail_plugin.NeutronPluginContrailCoreV2

b)
#./unstack
#./stack




Error
=====
ontrailPlugin.ini upgrade head
2014-08-12 13:49:15 Traceback (most recent call last):
2014-08-12 13:49:15   File "/usr/local/bin/neutron-db-manage", line 10, in
2014-08-12 13:49:15     sys.exit(main())
2014-08-12 13:49:15   File "/opt/stack/neutron/neutron/db/migration/cli.py", line 175, in main
2014-08-12 13:49:15     CONF.command.func(config, CONF.command.name)
2014-08-12 13:49:15   File "/opt/stack/neutron/neutron/db/migration/cli.py", line 85, in do_upgrade_downgrade
2014-08-12 13:49:15     do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
2014-08-12 13:49:15   File "/opt/stack/neutron/neutron/db/migration/cli.py", line 63, in do_alembic_command
2014-08-12 13:49:15     getattr(alembic_command, cmd)(config, *args, **kwargs)
2014-08-12 13:49:15   File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 125, in upgrade
2014-08-12 13:49:15     script.run_env()
2014-08-12 13:49:15   File "/usr/local/lib/python2.7/dist-packages/alembic/script.py", line 203, in run_env
2014-08-12 13:49:15     util.load_python_file(self.dir, 'env.py')
2014-08-12 13:49:16   File "/usr/local/lib/python2.7/dist-packages/alembic/util.py", line 215, in load_python_file
2014-08-12 13:49:16     module = load_module_py(module_id, path)
2014-08-12 13:49:16   File "/usr/local/lib/python2.7/dist-packages/alembic/compat.py", line 58, in load_module_py
2014-08-12 13:49:16     mod = imp.load_source(module_id, path, fp)
2014-08-12 13:49:16   File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 45, in
2014-08-12 13:49:16     importutils.import_class(class_path)
2014-08-12 13:49:16   File "/opt/stack/neutron/neutron/openstack/common/importutils.py", line 27, in import_class
2014-08-12 13:49:16     __import__(mod_str)
2014-08-12 13:49:16 ImportError: No module named neutron_plugin_contrail.plugins.opencontrail.contrail_plugin_core
2014-08-12 13:49:16 ++ failed
2014-08-12 13:49:16 ++ local r=1
2014-08-12 13:49:16 +++ jobs -p
2014-08-12 13:49:16 ++ kill
2014-08-12 13:49:16 ++ set +o xtrace
2014-08-12 13:49:16 stack.sh failed: full log in /home/saju/openstack/devstack/log/stack.log.2014-08-12-134654





No comments:

Post a Comment