您的位置:首页 > 运维架构 > Linux

在CentOS 7上部署OpenStack Juno时遇到的问题总结

2015-05-22 15:58 357 查看
随着安装的进度,持续更新 …

更多内容可移驾至我的独立Blog:
http://www.justfbt.com/


ISSUES:

1, can not start openstack-keystone service:

Description:

[root@controller01 ~]# systemctl start openstack-keystone
Job for openstack-keystone.service failed. See 'systemctl status openstack-keystone.service' and 'journalctl -xn' for details.

[root@controller01 ~]# systemctl status openstack-keystone
openstack-keystone.service - OpenStack Identity Service (code-named Keystone)
Loaded: loaded (/usr/lib/systemd/system/openstack-keystone.service; enabled)
Active: failed (Result: start-limit) since Fri 2015-05-22 09:54:23 EDT; 18s ago
Process: 25587 ExecStart=/usr/bin/keystone-all (code=exited, status=1/FAILURE)
Main PID: 25587 (code=exited, status=1/FAILURE)
May 22 09:54:23 controller01 systemd[1]: openstack-keystone.service: main process exited, code=exited, status=1/FAILURE
May 22 09:54:23 controller01 systemd[1]: Failed to start OpenStack Identity Service (code-named Keystone).
May 22 09:54:23 controller01 systemd[1]: Unit openstack-keystone.service entered failed state.
May 22 09:54:23 controller01 systemd[1]: openstack-keystone.service holdoff time over, scheduling restart.
May 22 09:54:23 controller01 systemd[1]: Stopping OpenStack Identity Service (code-named Keystone)...
May 22 09:54:23 controller01 systemd[1]: Starting OpenStack Identity Service (code-named Keystone)...
May 22 09:54:23 controller01 systemd[1]: openstack-keystone.service start request repeated too quickly, refusing to start.
May 22 09:54:23 controller01 systemd[1]: Failed to start OpenStack Identity Service (code-named Keystone).
May 22 09:54:23 controller01 systemd[1]: Unit openstack-keystone.service entered failed state.


Solution

Verify keystone correlation file’s privileges and run:

# chown -R keystone:keystone /var/log/keystone
# chown -R keystone:keystone /etc/keystone/ssl


2, can not: run keystone user-list … (keyston correlation commands):

Description:

# keystone tenant-create --name demo --description "Demo Tenant"
An unexpected error prevented the server from fulfilling your request. (HTTP 500)
# less /var/log/keystone/keystone.log
2015-05-20 02:02:38.766 16464 TRACE keystone.common.wsgi  Is the server running on host "controller01" (127.0.0.1) and accepting
2015-05-20 02:02:38.766 16464 TRACE keystone.common.wsgi  TCP/IP connections on port 5432?
2015-05-20 02:02:38.766 16464 TRACE keystone.common.wsgi could not connect to server: Permission denied
2015-05-20 02:02:38.766 16464 TRACE keystone.common.wsgi  Is the server running on host "controller01" (192.168.222.43) and accepting
2015-05-20 02:02:38.766 16464 TRACE keystone.common.wsgi  TCP/IP connections on port 5432?
2015-05-20 02:02:38.766 16464 TRACE keystone.common.wsgi  None None
2015-05-20 02:02:38.766 16464 TRACE keystone.common.wsgi


Solution

check /etc/hosts,verify this line:
127.0.0.1   localhost

check iptables

check selinux
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: