openstack 安装问题

执行glance image-list 报错信息
用户名和密码已经检查没有问题

谢谢回复!

[root@openstack ~]# glance image-list
/usr/lib/python2.6/site-packages/keystoneclient/access.py:20: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_utils instead.
  from oslo.utils import timeutils
/usr/lib/python2.6/site-packages/keystoneclient/i18n.py:21: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_i18n instead.
  from oslo import i18n
/usr/lib/python2.6/site-packages/keystoneclient/session.py:20: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
  from oslo.config import cfg
/usr/lib/python2.6/site-packages/keystoneclient/session.py:21: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_serialization instead.
  from oslo.serialization import jsonutils
2015-01-08 04:30:52.225 40569 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.6/site-packages/keystone/middleware/core.py:271
2015-01-08 04:30:52.231 40569 DEBUG keystone.common.wsgi [-] arg_dict: {} __call__ /usr/lib/python2.6/site-packages/keystone/common/wsgi.py:181
2015-01-08 04:30:52.237 40569 INFO eventlet.wsgi.server [-] 192.168.7.120 - - [08/Jan/2015 04:30:52] "GET /v2.0 HTTP/1.1" 200 770 0.014050
2015-01-08 04:30:52.241 40569 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.6/site-packages/keystone/middleware/core.py:271
2015-01-08 04:30:52.246 40569 DEBUG keystone.common.wsgi [-] arg_dict: {} __call__ /usr/lib/python2.6/site-packages/keystone/common/wsgi.py:181
2015-01-08 04:30:52.267 40569 DEBUG keystone.notifications [-] CADF Event: {'typeURI': 'http://schemas.dmtf.org/cloud/audit/1.0/event', 'initiator': {'typeURI': 'service/security/account/user', 'host': {'agent': 'python-keystoneclient', 'address': '192.168.7.120'}, 'id': 'openstack:19f4b2be-8682-4400-b941-049bdccafe68', 'name': u'8876c1500a674249acc8a4572e093bd0'}, 'target': {'typeURI': 'service/security/account/user', 'id': 'openstack:20ca9cd5-1aab-4dea-be23-c1b656301e1c'}, 'observer': {'typeURI': 'service/security', 'id': 'openstack:4851e5b7-f4ba-48a1-a6cb-6dec63be5cf0'}, 'eventType': 'activity', 'eventTime': '2015-01-07T20:30:52.266864+0000', 'action': 'authenticate', 'outcome': 'pending', 'id': 'openstack:d38c13fa-9560-4f7b-8890-7dea26eca05e'} _send_audit_notification /usr/lib/python2.6/site-packages/keystone/notifications.py:289
2015-01-08 04:30:52.344 40569 DEBUG keystone.notifications [-] CADF Event: {'typeURI': 'http://schemas.dmtf.org/cloud/audit/1.0/event', 'initiator': {'typeURI': 'service/security/account/user', 'host': {'agent': 'python-keystoneclient', 'address': '192.168.7.120'}, 'id': 'openstack:19f4b2be-8682-4400-b941-049bdccafe68', 'name': u'8876c1500a674249acc8a4572e093bd0'}, 'target': {'typeURI': 'service/security/account/user', 'id': 'openstack:8a2e79b0-e3cf-4863-a757-975c1e1435bf'}, 'observer': {'typeURI': 'service/security', 'id': 'openstack:c9b93960-a841-437b-86fb-2b4fc5a221df'}, 'eventType': 'activity', 'eventTime': '2015-01-07T20:30:52.343717+0000', 'action': 'authenticate', 'outcome': 'failure', 'id': 'openstack:07a1f002-0d61-4332-8e0e-edb610295d6d'} _send_audit_notification /usr/lib/python2.6/site-packages/keystone/notifications.py:289
2015-01-08 04:30:52.346 40569 WARNING keystone.common.wsgi [-] Authorization failed. Invalid user / password from 192.168.7.120
Authentication failure: Invalid user / password (HTTP 401)

相关配置信息
export OS_TENANT_NAME=ADMIN
export OS_USERNAME=ADMIN
export OS_PASSWORD=ADMIN
export OS_AUTH_URL=http://192.168.7.120:35357/v2.0

vi /etc/glance/glance-api.conf
[keystone_authtoken]
auth_uri   = http://192.168.7.120:35357
identity_uri = http://192.168.7.120:35357
auth_host = 192.168.7.120
auth_port = 37357
auth_protocol = http
admin_tenant_name = admin
admin_user = admin
admin_password = admin

keystone endpoint-list
-----------------------------+
|                id                |   region  |            publicurl            |          internalurl           |             adminurl            |            service_id            |
+----------------------------------+-----------+---------------------------------+--------------------------------+---------------------------------+----------------------------------+
| 7eabcbc9154640b5afd0b1da38712642 | regionOne | http://192.168.7.120:35357/v2.0 | http://192.168.7.120:5000/v2.0 | http://192.168.7.120:35357/v2.0 | 89fbc09beaf64e97891ddc6a2eccfb1f |
| f2351fc1e0a2431081e4ebc643d1194b | regionOne |    http://192.168.7.120:9292    |   http://192.168.7.120:9292    |    http://192.168.7.120:9292    | 5d6c7f11a4414ef5bd701458280f8ce5 |更多0

参与3

2同行回答

forrest_maxuforrest_maxu系统工程师南大通用
谢谢,我写错了显示全部
谢谢,我写错了收起
互联网服务 · 2015-01-14
浏览3253
AWCloud海云捷迅AWCloud海云捷迅产品总监北京海云捷迅科技有限公司
vi /etc/glance/glance-api.conf[keystone_authtoken]auth_uri   = http://192.168.7.120:35357identity_uri = http://192.168.7.120:35357auth_host = 192.168.7.120auth_port = 37357 ===> 35357auth_protocol = httpadmin_tenant_name = adminadmin_user =...显示全部
vi /etc/glance/glance-api.conf
[keystone_authtoken]
auth_uri   = http://192.168.7.120:35357
identity_uri = http://192.168.7.120:35357
auth_host = 192.168.7.120
auth_port = 37357 ===> 35357
auth_protocol = http
admin_tenant_name = admin
admin_user = admin
admin_password = admin

应该是配置文件错误,端口是35357
如果还是不行,可以查看keystone的日志。收起
软件开发 · 2015-01-14
浏览2595

提问者

forrest_maxu
系统工程师南大通用
擅长领域: 服务器Power服务器powerLinux

问题状态

  • 发布时间:2015-01-14
  • 关注会员:1 人
  • 问题浏览:9959
  • 最近回答:2015-01-14
  • X社区推广