slosh 发表于 2015-7-27 15:30:46

楼主,请问
openstack Expecting to find domain in project
报这个错是?
openstack user list等各种命令都报此错误。。。求助

yuwenge 发表于 2015-7-27 15:40:26

slosh 发表于 2015-7-27 15:30
楼主,请问
openstack Expecting to find domain in project
报这个错是?


这个信息看不出什么问题的
在找domain 的异常,只能说明keystone方面有问题

slosh 发表于 2015-7-27 16:08:01

yuwenge 发表于 2015-7-27 15:40
这个信息看不出什么问题的
在找domain 的异常,只能说明keystone方面有问题

感谢回复。
目前在看官方文档,做到keystone报错:




求指导,才玩openstack,不懂的很多。

pig2 发表于 2015-7-27 16:21:18

slosh 发表于 2015-7-27 16:08
感谢回复。
目前在看官方文档,做到keystone报错:


推荐openstack入门宝典相关视频

书籍:
about云openstack入门宝典
http://www.aboutyun.com/thread-11729-1-1.html


视频
about云零基础开发、部署openstack视频【juno】【已更新】
https://item.taobao.com/item.htm?spm=a1z10.1-c.w4004-4627152322.9.IOKtdz&id=43850311592

slosh 发表于 2015-7-27 17:14:47

pig2 发表于 2015-7-27 16:21
推荐openstack入门宝典相关视频

书籍:


谢谢版主的回复,目前看了文档,就是找不到问题所在。头痛了有些、、
目前修改什么变量和参数,都是报错:
ERROR: openstack The request you have made requires authentication. (HTTP 401)
任何openstack和keystone命令都是如此报错。
求拯救。


补充内容 (2015-7-28 10:13):
目前感觉问题就是环境变量上,日志错误一直都是:
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}。我已经unset相关的变量,可是依旧报错。

doscho 发表于 2015-8-10 15:37:03

学习了,好东西。

hejink 发表于 2015-8-10 21:11:13

张小强 发表于 2015-5-22 18:28
搞定了,建议不要用这些工具,手动改。

请问一下怎么解决的?我也遇到同样的问题了

恋凡小悠 发表于 2015-9-13 12:47:10

本帖最后由 pig2 于 2015-9-13 13:22 编辑

执行 :su -s /bin/sh -c "keystone-manage db_sync" keystone 有以下图片的报错

root@controller:~# su -s /bin/sh -c "keystone-manage db_sync" keystone
2015-09-13 12:45:10.067 3204 CRITICAL keystone [-] ArgumentError: Invalid SQLite URL: sqlite://keystone:KEYSTONE_DBPASS@controller/keystone
Valid SQLite URL forms are:
sqlite:///:memory: (or, sqlite://)
sqlite:///relative/path/to/file.db
sqlite:////absolute/path/to/file.db
2015-09-13 12:45:10.067 3204 TRACE keystone Traceback (most recent call last):
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/bin/keystone-manage", line 44, in <module>
2015-09-13 12:45:10.067 3204 TRACE keystone   cli.main(argv=sys.argv, config_files=config_files)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 307, in main
2015-09-13 12:45:10.067 3204 TRACE keystone   CONF.command.cmd_class.main()
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 74, in main
2015-09-13 12:45:10.067 3204 TRACE keystone   migration_helpers.sync_database_to_version(extension, version)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/common/sql/migration_helpers.py", line 204, in sync_database_to_version
2015-09-13 12:45:10.067 3204 TRACE keystone   _sync_common_repo(version)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/common/sql/migration_helpers.py", line 157, in _sync_common_repo
2015-09-13 12:45:10.067 3204 TRACE keystone   engine = sql.get_engine()
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/common/sql/core.py", line 188, in get_engine
2015-09-13 12:45:10.067 3204 TRACE keystone   return _get_engine_facade().get_engine()
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/common/sql/core.py", line 176, in _get_engine_facade
2015-09-13 12:45:10.067 3204 TRACE keystone   _engine_facade = db_session.EngineFacade.from_config(CONF)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 795, in from_config
2015-09-13 12:45:10.067 3204 TRACE keystone   retry_interval=conf.database.retry_interval)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 711, in __init__
2015-09-13 12:45:10.067 3204 TRACE keystone   **engine_kwargs)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 378, in create_engine
2015-09-13 12:45:10.067 3204 TRACE keystone   engine = sqlalchemy.create_engine(url, **engine_args)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/__init__.py", line 346, in create_engine
2015-09-13 12:45:10.067 3204 TRACE keystone   return strategy.create(*args, **kwargs)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 82, in create
2015-09-13 12:45:10.067 3204 TRACE keystone   (cargs, cparams) = dialect.create_connect_args(u)
2015-09-13 12:45:10.067 3204 TRACE keystone   File "/usr/lib/python2.7/dist-packages/sqlalchemy/dialects/sqlite/pysqlite.py", line 321, in create_connect_args
2015-09-13 12:45:10.067 3204 TRACE keystone   " sqlite:////absolute/path/to/file.db" % (url,))
2015-09-13 12:45:10.067 3204 TRACE keystone ArgumentError: Invalid SQLite URL: sqlite://keystone:KEYSTONE_DBPASS@controller/keystone
2015-09-13 12:45:10.067 3204 TRACE keystone Valid SQLite URL forms are:
2015-09-13 12:45:10.067 3204 TRACE keystonesqlite:///:memory: (or, sqlite://)
2015-09-13 12:45:10.067 3204 TRACE keystonesqlite:///relative/path/to/file.db
2015-09-13 12:45:10.067 3204 TRACE keystonesqlite:////absolute/path/to/file.db


pig2 发表于 2015-9-13 13:23:52

恋凡小悠 发表于 2015-9-13 12:47
执行 :su -s /bin/sh -c "keystone-manage db_sync" keystone 有以下图片的报错

root@controller:~# su ...

http://www.aboutyun.com/data/attachment/forum/201501/28/104447uzyakss49czi8ici.png

核实注释掉内容

恋凡小悠 发表于 2015-9-13 13:55:57

pig2 发表于 2015-9-13 13:23
核实注释掉内容

这个我设置好了的但是还是失败 还是无法同步
页: 1 2 [3] 4
查看完整版本: openstack【juno】入门 【keystone篇】六::Keystone使用及遇到问题解决办法