问题一
1.执行启动neutron服务报错[root@localhost ~]# systemctl start neutron-server.service
Job for neutron-server.service failed. See 'systemctl status neutron-server.service' and 'journalctl -xn' for details.
2.查看/var/log/neutron/server.log
2015-06-23 22:56:35.527 5297 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on localhost:5672
2015-06-23 22:56:43.548 5297 ERROR oslo.messaging._drivers.impl_rabbit [-] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed
发现是rabbitmq连接不上的问题
解决办法:
方法1:
打开nova配置文件:vim /etc/nova/nova.conf
将此字段的内容注释
方法2:
先编辑neutron配置文件,编辑完成后,再进行启动
问题二
503服务不可用:服务器当前不可用。请稍后再试。(HTTP 503)
[root@controller ~]# openstack image create "cirros" \
> --file cirros-0.3.4-x86_64-disk.img \
> --disk-format qcow2 --container-format bare \
> --public
503 Service Unavailable: The server is currently unavailable. Please try again at a later time. (HTTP 503)
出现这个错误查看配置文件glance.api与glance.registry中[keystone_authtoken]密码设置是否有误
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = 12345
如果核对密码无误,建议删除用户,重新手段设置密码
问题三
openstack glance服务上传镜像报错
Error finding address for http://192.168.79.135:9292/v2/schemas/image: HTTPConnectionPool(host='192.168.79.135', port=9292): Max retries exceeded with url: /v2/schemas/image (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x48bd890>: Failed to establish a new connection: [Errno 111] \xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5',))
编辑/etc/hosts文件使主机能够自己解析自己
问题四
yum源有问题,或者网络不通,无法ping同yum源中的网络地址