liberty版本:登录Dashboard时,提示【无法连接keystone端点】

查找了相关的配置文件,但没有发现哪里有错误,请朋友们帮助分析一下。 如果可以的话,发邮件到mwj818@189.cn邮箱里,谢谢!   环境:[code]export OS_PROJECT_DOMAIN_ID=default export OS_USER_DOMAIN_ID=default export OS_PROJECT_NAME=admin export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=pass export OS_AUTH_URL=http: //controller:35357/v3 export OS_IDENTITY_API_VERSION=3 export OS_URL=http: //controller:9696 [/code] /etc/keystone/keystone.conf[code]admin_token = ADMIN connection = mysql://keystone:pass@controller/keystone public_bind_host = 0.0.0.0 public_port = 5000 admin_bind_host = 0.0.0.0 admin_port = 35357 servers = 127.0.0.1:11211 driver = sql driver = memcache provider = uuid [/code] /etc/openstack-dashboard/local_settings:[code]ALLOWED_HOSTS = ['*',] CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } } OPENSTACK_NEUTRON_NETWORK = { 'enable_router': False, 'enable_quotas': False, 'enable_ipv6': False, 'enable_distributed_router': False, 'enable_ha_router': False, 'enable_lb': False, 'enable_firewall': False, 'enable_vpn': False, 'enable_fip_topology_check': True,[/code] tail -n 30 /var/log/keystone//keystone.log[code]2016-07-06 10:36:13.656 8551 INFO keystone.common.wsgi [req-de9611ab-e58b-4e52-bf10-3de9ba1f1d17 - - - - -] GET http: //controller:35357/ 2016-07-06 10:36:13.814 8553 INFO keystone.common.wsgi [req-03b6e3a6-2be9-4d7d-9716-dcc440669bc7 - - - - -] GET http: //controller:35357/v3/users 2016-07-06 11:14:35.066 16505 INFO keystone.common.wsgi [req-bded1629-a961-4a4a-b730-3e84e9870fe2 - - - - -] GET http: //controller:35357/v3/ 2016-07-06 11:14:36.809 16503 INFO keystone.common.wsgi [req-bc166261-778e-4059-a0ca-55274e1a6a97 - - - - -] POST http: //controller:35357/v3/auth/tokens 2016-07-06 11:14:37.868 16503 WARNING oslo_config.cfg [req-bc166261-778e-4059-a0ca-55274e1a6a97 - - - - -] Option "admin_bind_host" from group "eventlet_server" is deprecated for removal. Its value may be silently ignored in the future. 2016-07-06 11:14:37.869 16503 WARNING oslo_config.cfg [req-bc166261-778e-4059-a0ca-55274e1a6a97 - - - - -] Option "admin_port" from group "eventlet_server" is deprecated for removal. Its value may be silently ignored in the future. 2016-07-06 11:14:37.869 16503 WARNING oslo_config.cfg [req-bc166261-778e-4059-a0ca-55274e1a6a97 - - - - -] Option "public_port" from group "eventlet_server" is deprecated for removal. Its value may be silently ignored in the future. 2016-07-06 11:14:37.869 16503 WARNING oslo_config.cfg [req-bc166261-778e-4059-a0ca-55274e1a6a97 - - - - -] Option "public_bind_host" from group "eventlet_server" is deprecated for removal. Its value may be silently ignored in the future. 2016-07-06 11:14:38.171 16503 INFO keystone.common.kvs.core [req-bc166261-778e-4059-a0ca-55274e1a6a97 - - - - -] Using default dogpile sha1_mangle_key as KVS region token-driver key_mangler 2016-07-06 11:14:41.246 16506 INFO keystone.common.wsgi [req-f64adc61-dbcc-4c63-b88a-711c827bb1c9 - - - - -] POST http: //controller:35357/v3/auth/tokens 2016-07-06 11:14:41.599 16506 WARNING oslo_config.cfg [req-f64adc61-dbcc-4c63-b88a-711c827bb1c9 - - - - -] Option "admin_bind_host" from group "eventlet_server" is deprecated for removal. Its value may be silently ignored in the future. 2016-07-06 11:14:41.600 16506 WARNING oslo_config.cfg [req-f64adc61-dbcc-4c63-b88a-711c827bb1c9 - - - - -] Option "admin_port" from group "eventlet_server" is deprecated for removal. Its value may be silently ignored in the future. 2016-07-06 11:14:41.601 16506 WARNING oslo_config.cfg [req-f64adc61-dbcc-4c63-b88a-711c827bb1c9 - - - - -] Option "public_port" from group "eventlet_server" is deprecated for removal. Its value may be silently ignored in the future. 2016-07-06 11:14:41.601 16506 WARNING oslo_config.cfg [req-f64adc61-dbcc-4c63-b88a-711c827bb1c9 - - - - -] Option "public_bind_host" from group "eventlet_server" is deprecated for removal. Its value may be silently ignored in the future. 2016-07-06 11:14:41.642 16506 INFO keystone.common.kvs.core [req-f64adc61-dbcc-4c63-b88a-711c827bb1c9 - - - - -] Using default dogpile sha1_mangle_key as KVS region token-driver key_mangler 2016-07-06 11:14:43.037 16502 INFO keystone.common.wsgi [-] GET http: //controller:35357/ 2016-07-06 11:14:44.304 16504 INFO keystone.common.kvs.core [req-484139b0-a3c9-4b84-9668-38678fc01038 - - - - -] Using default dogpile sha1_mangle_key as KVS region token-driver key_mangler 2016-07-06 11:14:44.715 16504 INFO keystone.common.wsgi [req-484139b0-a3c9-4b84-9668-38678fc01038 - - - - -] GET http: //controller:35357/v3/users[/code] 相关用户:​ [code][root@controller ~]# openstack user list +----------------------------------+---------+ | ID | Name | +----------------------------------+---------+ | 47527e58411748979d0ff965e008784e | demo | | 88232a6892a644b1b6db78cbe70e87a1 | neutron | | 890b94abe3d746a8912771da4d65a146 | glance | | ba1aa5349ecf40658e47bb6db89d7310 | admin | | f6b033b2abfd402382250bb961e46459 | nova | +----------------------------------+---------+[/code]   end.
已邀请:
哈哈,终于找到上述问题了。
more /etc/httpd/logs/error_log
 
[Wed Jul 06 15:58:20.482686 2016] [:error] [pid 32741] Unable to establish connection to http ://cotroller:5000/v2.0/tokens
[Wed Jul 06 15:58:20.484506 2016] [:error] [pid 32741] Login failed for user "admin".

原来在/etc/openstack-dashboard/local_settings:
OPENSTACK_HOST = "[b]cotroller[/b]"   #把此项更改为[b]controller[/b]
OPENSTACK_KEYSTONE_URL = "http ://%s:5000/v2.0" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
systemctl restart httpd.service memcached.service
systemctl status httpd.service memcached.service
 
页面不再提示错误,但,并没有进入后续页面。继续查看日志;
more /etc/httpd/logs/error_log
[Wed Jul 06 16:55:04.821335 2016] [mpm_prefork:notice] [pid 32739] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Jul 06 16:55:56.918207 2016] [suexec:notice] [pid 45750] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jul 06 16:55:56.937448 2016] [auth_digest:notice] [pid 45750] AH01757: generating secret for digest authentication ...
[Wed Jul 06 16:55:56.938227 2016] [lbmethod_heartbeat:notice] [pid 45750] AH02282: No slotmem from mod_heartmonitor
[Wed Jul 06 16:55:56.982012 2016] [mpm_prefork:notice] [pid 45750] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Wed Jul 06 16:55:56.982056 2016] [core:notice] [pid 45750] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Jul 06 16:56:07.996173 2016] [:error] [pid 45753] RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
[Wed Jul 06 16:56:07.996269 2016] [:error] [pid 45753] WARNING:py.warnings:RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
[Wed Jul 06 16:56:15.765529 2016] [:error] [pid 45753] RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning.
[Wed Jul 06 16:56:15.765614 2016] [:error] [pid 45753] WARNING:py.warnings:RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning.
[Wed Jul 06 16:56:15.765754 2016] [:error] [pid 45753] RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning.
[Wed Jul 06 16:56:15.765779 2016] [:error] [pid 45753] WARNING:py.warnings:RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning.
[Wed Jul 06 16:56:15.922921 2016] [:error] [pid 45753] RemovedInDjango19Warning: The use of the language code 'zh-cn' is deprecated. Please use the 'zh-hans' translation instead.
[Wed Jul 06 16:56:15.922981 2016] [:error] [pid 45753] WARNING:py.warnings:RemovedInDjango19Warning: The use of the language code 'zh-cn' is deprecated. Please use the 'zh-hans' translation instead.
[Wed Jul 06 16:56:48.577471 2016] [:error] [pid 45753] Login successful for user "admin".
[Wed Jul 06 16:56:49.661848 2016] [:error] [pid 45753] RemovedInDjango19Warning: Loading the `url` tag from the `future` library is deprecated and will be removed in Django 1.9. Use the default `url` tag instead.
[Wed Jul 06 16:56:49.661917 2016] [:error] [pid 45753] WARNING:py.warnings:RemovedInDjango19Warning: Loading the `url` tag from the `future` library is deprecated and will be removed in Django 1.9. Use the default `url` tag instead.

 
 
 

要回复问题请先登录注册