about云开发-活到老 学到老

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 831|回复: 1

neutron初始化数据不行,是什么问题?

[复制链接]

2

主题

2

听众

0

收听

注册会员

Rank: 2

积分
64
发表于 2018-1-10 16:15:08 | 显示全部楼层 |阅读模式
sh -c 'neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade head' neutron
No handlers could be found for logger "neutron.quota"
Traceback (most recent call last):
  File "/usr/bin/neutron-db-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 565, in main
    CONF.command.func(config, CONF.command.name)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 194, in do_upgrade
    run_sanity_checks(config, revision)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 552, in run_sanity_checks
    script_dir.run_env()
  File "/usr/lib/python2.7/site-packages/alembic/script/base.py", line 397, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/site-packages/alembic/util/pyfiles.py", line 81, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/lib/python2.7/site-packages/alembic/util/compat.py", line 79, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/env.py", line 135, in <module>
    run_migrations_online()
  File "/usr/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/env.py", line 114, in run_migrations_online
    engine = session.create_engine(neutron_config.database.connection)
  File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 112, in create_engine
    url = sqlalchemy.engine.url.make_url(sql_connection)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 186, in make_url
    return _parse_rfc1738_args(name_or_url)
  File "/usr/lib64/python2.7/site-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 ''
You have new mail in /var/spool/mail/root

76

主题

35

听众

20

收听

高级会员

Rank: 4

积分
3163

最佳新人活跃会员热心会员

发表于 2018-1-10 16:44:17 | 显示全部楼层
connection可能有问题,检测下配置文件,是否有下面字符
[Bash shell] 纯文本查看 复制代码
rfc1738 


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

QQ|小黑屋|about云开发-学问论坛|社区-大数据云技术学习分享平台 ( 京ICP备12023829号

GMT+8, 2018-6-19 16:36 , Processed in 0.434286 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.2 Licensed

© 2018 Comsenz Inc.Designed by u179

快速回复 返回顶部 返回列表