openstack之kilo安装 FAQ

这周在折腾openstack,下面是过程中问题小记。

启动

  1. 无法启动
# systemctl start httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
# systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)

Active: failed (Result: exit-code) since Wed 2015-11-04 13:07:58 CST; 8s ago
Process: 13328 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 13327 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 13327 (code=exited, status=1/FAILURE)

Nov 04 13:07:58 controller systemd[1]: Starting The Apache HTTP Server...
Nov 04 13:07:58 controller httpd[13327]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:5000
Nov 04 13:07:58 controller httpd[13327]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:5000
Nov 04 13:07:58 controller httpd[13327]: no listening sockets available, shutting down
Nov 04 13:07:58 controller httpd[13327]: AH00015: Unable to open logs
Nov 04 13:07:58 controller systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 04 13:07:58 controller kill[13328]: kill: cannot find process ""
Nov 04 13:07:58 controller systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 04 13:07:58 controller systemd[1]: Failed to start The Apache HTTP Server.
Nov 04 13:07:58 controller systemd[1]: Unit httpd.service entered failed state.

安装openstack-selinux

#
yum install -y openstack-selinux

建实例

  1. 无法创建实例
消息  Build of instance 6a1d5331-542c-4f05-8ef6-df5bc0aea44a aborted: Could not clean up failed build, not rescheduling
编码 500
详情 File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2235, in _do_build_and_run_instance filter_properties) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2349, in _build_and_run_instance 'create.error', fault=e) File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2333, in _build_and_run_instance block_device_info=block_device_info) File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2485, in _build_resources instance_uuid=instance.uuid, reason=msg)
# keystone tenant-list | awk '/ service / { print $2 }'
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-d081607d-0af5-441d-a08a-688db7a45612)

Failed to connect to server (code: 1006)