[原]openstack-kilo--issue(十二)openstack-keystone和httpd服务同时占用35357和5000
2017-01-16 18:54
387 查看
本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.
== Keystone service == openstack-keystone: inactive
如上面显示的状态:如果启动了httpd就不能很好的启动openstack-keystone服务,在官方文档中看到这样一段话:
This guide uses the Apache HTTP server with mod_wsgi to serve keystone requests on ports 5000 and 35357. By default, the keystone service still listens on ports 5000 and 35357. 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 5000 and 35357 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:5000 => Listen 127.0.0.1:35357 => same for VirtualHost 127.0.0.1:5000 & 35357 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 ......
相关文章推荐
- openstack-kilo--issue(五) neutron-agent服务实际是active的-但是显示为XXX
- [原]openstack-kilo--issue(十五) WARNING keystonemiddleware.auth_token Authorization failed for token Could not find token
- openstack【Kilo】入门 【keystone篇】六:创建服务实例和 API endpoint
- [原]openstack-kilo--issue(五) neutron-agent服务实际是active的-但是显示为XXX
- [原]openstack-kilo--issue(一) httpd汇总
- OpenStack(Kilo版本)镜像服务glance的安装部署
- [转]openstack-kilo--issue(十四)Tunnel IP %(ip)s in use with host %(host)s'
- [原]openstack-kilo--issue(十七) heat创建网络Quota exceeded for resources OverQuotaClient: resources.dmz_protected_network_sub
- openstack【Kilo】入门 【keystone篇】七:创建租户、用户、角色
- CentOS 7部署OpenStack(2)―安装keystone服务
- Openstack 安装部署指南翻译系列 之 Keystone服务安装(Identity)
- openstack【Kilo】入门 【nova篇】十二:安装配置nova
- [原]openstack-kilo--issue(十三)Unauthorized: The request you have made requires authentication. (HTTP 401) (Request
- openstack【Kilo】入门 【keystone篇】八:验证keystone安装部署
- OpenStack 认证服务 KeyStone [二]
- Ubuntu 14.04一步一步安装Openstack Kilo版本-7(keystone)
- openstack【Kilo】入门 【keystone篇】五:keystone安装与配置
- OpenStack 认证服务 KeyStone [二]
- OpenStack 认证服务 KeyStone部署(三)