本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.

== Keystone service ==
openstack-keystone: inactive

如上面显示的状态:如果启动了httpd就不能很好的启动openstack-keystone服务,在官方文档中看到这样一段话:

This guide uses the Apache HTTP server with mod_wsgi to serve keystone requests
on ports and . By default, the keystone service still listens on ports
and . Therefore, this guide disables the keystone service.

意思是说httpd和openstack-keystone服务都会用的同样的两个端口35357和5000.所以文档选择的是使用httpd,不过这样一来,刚装上的时候是没有问题,时间久了就会发现很多问题:

因此google一番,发现一个solution:

I have resolved the "openstack service create" problem following this steps :

HTTP and KEYSTONE service sharing the same port, so stop httpd and start openstack-keystone.service. Edit /etc/keystone/keystone.conf and replace "hostname or ip" to "localhost":

connection = mysql://keystone:openstack@localhost/keystone

Remember to stop service httpd and enable start service keystone: - systemctl stop httpd.service - systemctl enable openstack-keystone.service => systemctl start openstack-keystone.service

And finally, exec "openstack service create --name keystone --description "OpenStack Identity" identity" command.

Most important to remember, the dashboard horizon use apache so that keystone and apache service must be running. Into keystone.conf and wsgi-keystone.conf occur bind a single interface on ports  and  instead of all interface "*" or "0.0.0.0":

edit /etc/keystone/keystone.conf => set admin_bind_host = <ip_mgmt> => set public_bind_host = <ip_mgmt>
edit /etc/httpd/conf.d/wsgi-keystone.conf => set Listen 127.0.0.1: => Listen 127.0.0.1: => same for VirtualHost 127.0.0.1: &
After service openstack-keystone.service and httpd.service restart, both process will be running in the same time.

这样一来就解决了不能同时开启httpd和openstack-keystone的情况

[root@controller ~]# openstack-status
......
== Keystone service ==
openstack-keystone: active
== Horizon service ==
openstack-dashboard: active
......

最新文章

  1. 解决web中的乱码
  2. GridView合并表头、多重表头(转)
  3. Adobe Dreamweaver(DW)
  4. 菜鸟学习WCF笔记-概念
  5. JAVA多线程通信
  6. 用Redis bitmap统计活跃用户、留存
  7. PYTHON的CGIServer的进化
  8. Sublime Text3 个人使用心得
  9. VC使用双缓冲避免绘图闪烁的正确使用方法【转】
  10. Open virtual effects in Ubuntu 12.04LTS
  11. (转)maven打包时跳过测试
  12. linux下64位汇编的系统调用(3)
  13. JDBC连接
  14. DELPHI中完成端口(IOCP)的简单分析(4)
  15. wx.setStorageSync(KEY,DATA)
  16. Openstack镜像和密码
  17. jquery.raty.js 评星插件的使用
  18. Tweak和app交互方案【进程通信】
  19. 阿里 vs. 腾讯,谁的收购更有眼光?
  20. 笔记_JSON

热门文章

  1. Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical
  2. 我的Mac应用
  3. JS逗号、冒号与括号
  4. visual studio快捷键总结
  5. System.Net.Http 简介
  6. CLR 的执行模型(2)
  7. Web Builder
  8. Api 和 Spi
  9. .NET重构—单元测试重构
  10. HTML5 拖拽效果实现