分享

查看glance镜像时报错

M}{S_5]9MFYRDX{))0}VVJN.png
[root@linux-node1 glance]# glance image-list
Expecting to find domain in project - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-626cd318-0a74-470c-85a5-b845ffa21332)

已有(5)人评论

跳转到指定楼层
s060403072 发表于 2016-3-5 10:13:34
http 400是客户端未提供有效验证。
应该是keystone验证的问题
回复

使用道具 举报

笑傲风云 发表于 2016-3-5 11:05:31
这是我的配置文件:
[root@linux-node1 ~]# grep '^[a-z]' /etc/glance/glance-api.conf     
verbose=True
notification_driver = noop
connection=mysql://glance:glance@10.0.0.2/glance
default_store=file
filesystem_store_datadir=/var/lib/glance/images/
auth_uri = http://10.0.0.2:5000
auth_url = http://10.0.0.2:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = glance
password = glance
flavor=keystone
[root@linux-node1 ~]# grep '^[a-z]' /etc/glance/glance-registry.conf
verbose=True
notification_driver =noop
connection=mysql://glance:glance@10.0.0.2/glance
auth_uri = http://10.0.0.2:5000
auth_url = http://10.0.0.2:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = glance
password = glance
flavor=keystone
[root@linux-node1 ~]# grep '^[a-z]' /etc/keystone/keystone.conf     
admin_token = 299add0ad23ada184f37
verbose = true
connection = mysql://keystone:keystone@10.0.0.2/keystone
servers = 10.0.0.2:11211
driver = sql
provider = uuid
driver = memcache


日志信息:
[root@linux-node1 ~]# tail -f /var/log/keystone/keystone.log
2016-03-05 11:01:42.815 18420 INFO keystone.common.wsgi [req-6b2a89e9-3614-4c15-90dd-c59e6aebcd51 - - - - -] GET http://10.0.0.2:35357/v3/
2016-03-05 11:01:42.825 18418 INFO keystone.common.wsgi [req-e2d0e3c1-556a-48ee-ae11-ae26079b4f3a - - - - -] POST http://10.0.0.2:35357/v3/auth/tokens
2016-03-05 11:01:42.825 18418 WARNING keystone.common.wsgi [req-e2d0e3c1-556a-48ee-ae11-ae26079b4f3a - - - - -] Expecting to find domain in project - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.


[root@linux-node1 ~]# tail -f /var/log/glance/api.log
2016-03-05 10:32:23.625 19035 INFO glance.db.sqlalchemy.migrate_repo.schema [-] creating table artifact_blob_locations
2016-03-05 10:32:23.677 19035 INFO glance.db.sqlalchemy.migrate_repo.schema [-] creating table artifact_dependencies
2016-03-05 10:32:23.732 19035 INFO migrate.versioning.api [-] done
2016-03-05 10:32:23.732 19035 INFO migrate.versioning.api [-] 41 -> 42...
2016-03-05 10:32:23.948 19035 INFO migrate.versioning.api [-] done
2016-03-05 10:40:16.568 19186 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "user-name" from group "keystone_authtoken".
2016-03-05 10:40:16.641 19186 INFO glance_store._drivers.filesystem [-] Directory to write image files does not exist (/var/lib/glance/images/). Creating.
2016-03-05 10:40:16.642 19186 INFO glance.common.wsgi [-] Starting 1 workers
2016-03-05 10:40:16.656 19197 INFO eventlet.wsgi.server [-] (19197) wsgi starting up on http://0.0.0.0:9292/
2016-03-05 10:40:16.657 19186 INFO glance.common.wsgi [-] Started child 19197
^C
[root@linux-node1 ~]# tail -f /var/log/glance/registry.log
2016-03-05 10:40:27.637 19221 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "user-name" from group "keystone_authtoken".
2016-03-05 10:40:27.640 19221 INFO glance.common.wsgi [-] Starting 1 workers
2016-03-05 10:40:27.673 19221 INFO glance.common.wsgi [-] Started child 19230
2016-03-05 10:40:27.692 19230 INFO eventlet.wsgi.server [-] (19230) wsgi starting up on http://0.0.0.0:9191
回复

使用道具 举报

sunchangqin 发表于 2016-3-5 17:07:20
我碰到过这个问题,你将所有NODE的防火墙关闭
回复

使用道具 举报

笑傲风云 发表于 2016-3-5 22:40:37
这个是怎么操作的,麻烦给指点下
回复

使用道具 举报

笑傲风云 发表于 2016-4-8 11:35:24
此问题已解决,原因为admin-openrc.sh 变量配置有误导致
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条