Ask Your Question
0

devstack with ML2Plugin

asked 2014-02-06 23:42:46 -0500

joshua gravatar image

updated 2014-02-07 00:31:08 -0500

Hi,

I am trying to install ML2 Plugin with Neutron on Ubuntu 12.04.

I am facing the below errors

  • mysql -uroot -pComnet123 -h127.0.0.1 -e 'DROP DATABASE IF EXISTS neutron_ml2;'
  • mysql -uroot -pComnet123 -h127.0.0.1 -e 'CREATE DATABASE neutron_ml2 CHARACTER SET utf8;'
  • /usr/local/bin/neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head No handlers could be found for logger "neutron.common.legacy" Traceback (most recent call last): File "/usr/local/bin/neutron-db-manage", line 10, in <module> sys.exit(main()) File "/opt/stack/neutron/neutron/db/migration/cli.py", line 143, in main CONF.command.func(config, CONF.command.name) File "/opt/stack/neutron/neutron/db/migration/cli.py", line 80, in do_upgrade_downgrade do_alembic_command(config, cmd, revision, sql=CONF.command.sql) File "/opt/stack/neutron/neutron/db/migration/cli.py", line 59, in do_alembic_command getattr(alembic_command, cmd)(config, args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 124, in upgrade script.run_env() File "/usr/local/lib/python2.7/dist-packages/alembic/script.py", line 199, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/local/lib/python2.7/dist-packages/alembic/util.py", line 199, in load_python_file module = load_module(module_id, path) File "/usr/local/lib/python2.7/dist-packages/alembic/compat.py", line 55, in load_module mod = imp.load_source(module_id, path, fp) File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 105, in <module> run_migrations_online() File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 78, in run_migrations_online poolclass=pool.NullPool) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/__init__.py", line 338, in create_engine return strategy.create(args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 48, in create u = url.make_url(name_or_url) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 178, in make_url return _parse_rfc1738_args(name_or_url) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 219, in _parse_rfc1738_args "Could not parse rfc1738 URL from string '%s'" % name) sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string '' ++ failed

Local rc file is

HOST_IP=192.168.195.244
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-sch,n-cauth,mysql,rabbit,sysstat,n-cond,n-cpu,n-novnc,n-xvnc
disable_service c-api c-sch c-vol cinder
enable_service n-vol
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
ENABLED_SERVICES+=,horizon
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
#Q_HOST=$HOST_IP
Q_PLUGIN=ml2
#Q_AGENT=openvswitch

#Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,l2population
#Q_ML2_TENANT_NETWORK_TYPE=gre
#Q_USE_SECGROUP=True
#Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_types=gre)
#Q_AGENT_EXTRA_SRV_OPTS=(local_ip=$HOST_IP)

DATABASE_PASSWORD=Comnet123
RABBIT_PASSWORD=guest
SERVICE_TOKEN=012345SECRET99TOKEN012345
SERVICE_PASSWORD=Comnet123
ADMIN_PASSWORD=Comnet123

Please help

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-02-07 00:53:40 -0500

updated 2014-02-07 00:57:07 -0500

Try commenting out DATABASE_PASSWORD and remove mysql from enable_service and use just

MYSQL_PASSWORD=Comnet123
That's in my localrc.

Otherwise, use

DATABASE_TYPE=mysql
DATABASE_USER=root
if you want to try it with DATABASE_PASSWORD. I am not sure, but could be a workaround.

What does the "sql_connection =" say under [DEFAULT] in /etc/nova/nova.conf?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-02-06 23:42:46 -0500

Seen: 1,131 times

Last updated: Feb 07 '14