Looks like you might be missing some of the command, specifically the neutron 
config file:

# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \ 
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron
And some quotes.  You had:

> sudo neutron-db-manage --config-file /etc/neutron/plugins/ml2/ml2_conf.ini 
> upgrade head

Thanks,

JC

> On Nov 30, 2016, at 4:03 PM, Prabhu Janakaraj <[email protected]> wrote:
> 
> Hi openstack enthusiasts,
> I have been trying to deploy a 3 node openstack cluster (controller, compute 
> & Network)
> 
> I am following the instructions from openstack docs and I am stuck at 
> configuring Neutron as a service. 
> 
> To be exact, I am facing issue when I am running the neutron-manage db_sync 
> following the information on this link
> 
> http://docs.openstack.org/newton/install-guide-ubuntu/neutron-controller-install.html#neutron-controller-metadata-agent
> 
> while executing this command 
> 
> sudo neutron-db-manage --config-file /etc/neutron/plugins/ml2/ml2_conf.ini 
> upgrade head
> 
> 
> I am getting the below error
> 
>   File "/usr/bin/neutron-db-manage", line 10, in <module>
>     sys.exit(main())
>   File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 
> 686, in main
>     return_val |= bool(CONF.command.func(config, CONF.command.name))
>   File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 
> 205, in do_upgrade
>     run_sanity_checks(config, revision)
>   File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 
> 670, in run_sanity_checks
>     script_dir.run_env()
>   File "/usr/lib/python2.7/dist-packages/alembic/script/base.py", line 407, 
> in run_env
>     util.load_python_file(self.dir, 'env.py')
>   File "/usr/lib/python2.7/dist-packages/alembic/util/pyfiles.py", line 93, 
> in load_python_file
>     module = load_module_py(module_id, path)
>   File "/usr/lib/python2.7/dist-packages/alembic/util/compat.py", line 79, in 
> load_module_py
>     mod = imp.load_source(module_id, path, fp)
>   File 
> "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/env.py",
>  line 120, in <module>
>     run_migrations_online()
>   File 
> "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/env.py",
>  line 106, in run_migrations_online
>     with DBConnection(neutron_config.database.connection, connection) as conn:
>   File "/usr/lib/python2.7/dist-packages/neutron/db/migration/connection.py", 
> line 32, in __enter__
>     self.engine = session.create_engine(self.connection_url)
>   File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py", line 
> 114, in create_engine
>     url = sqlalchemy.engine.url.make_url(sql_connection)
>   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 186, 
> in make_url
>     return _parse_rfc1738_args(name_or_url)
>   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 235, 
> in _parse_rfc1738_args
>     "Could not parse rfc1738 URL from string '%s'" % name)
> sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string ''
> 
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : [email protected]
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to