問題一
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源中的網絡地址