问题描述

openstack安装过程中,执行

openstack domain create --description "Domain" example

报错如下:

Failed to contact the endpoint at http://controller:35357/ for discovery. Fallback to using that endpoint as the base url.

问题解决

查看ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/对应建立的软连接的 wsgi-keystone.conf 文件,发现只开启了5000端口的监听及配置信息。故加入35357端口的监听配置。

Listen 35357
Listen 35357
<VirtualHost *:5000>
WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
WSGIProcessGroup keystone-public
WSGIScriptAlias / /usr/bin/keystone-wsgi-public
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
LimitRequestBody 114688
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/httpd/keystone.log
CustomLog /var/log/httpd/keystone_access.log combined <Directory /usr/bin>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
</VirtualHost> <VirtualHost *:35357>
WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
WSGIProcessGroup keystone-admin
WSGIScriptAlias / /usr/bin/keystone-wsgi-admin
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/httpd/keystone-error.log
CustomLog /var/log/httpd/keystone-access.log combined
<Directory /usr/bin>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
</VirtualHost>
Alias /identity /usr/bin/keystone-wsgi-public
<Location /identity>
SetHandler wsgi-script
Options +ExecCGI WSGIProcessGroup keystone-public
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
</Location>

重新启动http服务即可。

systemctl stop httpd.service
systemctl start httpd.service

创建域如下

最新文章

  1. web standards
  2. 【BZOJ】2154: Crash的数字表格
  3. HDU 1166 敌兵布阵 线段树
  4. PHP与javascript实现变量交互
  5. UINavigationController的popViewControllerAnimated问题
  6. scrapy抓取到中文,保存到json文件为unicode,如何解决.
  7. LightOj 1230 Placing Lampposts(树形DP)
  8. KVM 实现机制
  9. Microsoft Message Analyzer (微软消息分析器,“网络抓包工具 - Network Monitor”的替代品)官方正式版现已发布
  10. HTML (Hyper Text Markup Language) 常用标签
  11. pdf去水印
  12. Select、Poll、Epoll、 异步IO 介绍
  13. so beautiful so white
  14. linux之添加切换用户、系统变量、selinux、防火墙、系统中文乱码的讲解
  15. 极光推送(C#)
  16. 不同AI学科之间的联系
  17. defaultdict
  18. SpringDataJPA快速入门
  19. 乘积尾零|2018年蓝桥杯B组题解析第三题-fishers
  20. Javascript 在严格模式下不允许删除变量或对象

热门文章

  1. 深入V8引擎-初始化之InitPlatform
  2. Java线程池,isShutDown、isTerminated的作用与区别
  3. chrome(谷歌)浏览器字体发虚解决办法
  4. 关于final
  5. HTTP是什么,不是什么?
  6. vue开发环境配置
  7. 0x02 Python logging模块利用配置加载logger
  8. OAuth 2.0 的四种授权模式
  9. 并发编程(六)--进程/线程池、协程、gevent第三方库
  10. Django 学习笔记之模型高级用法