標籤:glance images store error
教程請參考官方教程
只是羅列了一些遇到的問題與解決方案
1.keystone 無法啟動可以先執行以下操作
# keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
# chown -R keystone:keystone /var/log/keystone
# chown -R keystone:keystone /etc/keystone/ssl
# chmod -R o-rwx /etc/keystone/ssl
2.glance-api服務啟動失敗
修改 api.log 許可權
chown -R glance:glance /var/log/glance/api.log
3.上傳鏡像失敗
錯誤提示:410 Gone: Error in store configuration. Adding images to store is disabled. (HTTP N/A)
上傳鏡像的目錄許可權問題
chown -R glance:glance /var/lib/glance/images/
4.安裝compute節點服務後,nova-compute服務無法啟動,/var/log/nova/nova-compute.log報以下錯誤: 2015-06-26 03:31:17.501 1390 ERROR oslo_messaging._drivers.impl_rabbit [req-d7a3a24b-fe9f-4885-8db6-efc850b9ec44 - - - - -] AMQP server on controller:
5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 2 seconds.
2015-06-26 03:31:18.526 1390 ERROR oslo_messaging._drivers.impl_rabbit [req-d7a3a24b-fe9f-4885-8db6-efc850b9ec44 - - - - -] AMQP server on controller:
5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 2 seconds.
2015-06-26 03:31:19.548 1390 ERROR oslo_messaging._drivers.impl_rabbit [req-d7a3a24b-fe9f-4885-8db6-efc850b9ec44 - - - - -] AMQP server on controller:
5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 2 seconds.
在controller節點放開AMQP串連防火牆,放開rabbitmq server或AMQP 連接埠5672。 #firewall-cmd --list-all
[[email protected] nova]# firewall-cmd --list-all public (default, active)
interfaces: eno16777736 eno33554976 sources:
services: dhcpv6-client ftp http mysql ssh ports: 23/tcp masquerade: no forward-ports: icmp-blocks: rich rules:
[[email protected] nova]#
# firewall-cmd --permanent --add-port=5672/tcp #firewall-cmd –reload
[[email protected] nova]# firewall-cmd --list-all public (default, active)
interfaces: eno16777736 eno33554976 sources:
services: dhcpv6-client ftp http mysql ssh ports: 23/tcp 5672/tcp masquerade: no forward-ports: icmp-blocks: rich rules:
5.nova-compute 啟動失敗 錯誤提示:Unable to load the virtualization driver
修改設定檔/etc/nova/nova.conf
egrep -c ‘(vmx|svm)‘ /proc/cpuinfo
輸出:0
/etc/nova/nova-compute.conf設定檔
compute_driver=libvirt.LibvirtDriver
[libvirt]
virt_type=qemu
如果在虛擬機器環境下則無法使用virt_type=kvm
compute_dirver 應該替換成
#compute_driver=libvirt.LibvirtDriver
compute_driver=nova.virt.libvirt.LibvirtDriver
接下來會提示防火牆錯誤
錯誤資訊:
"AttributeError: ‘module‘ object has no attribute ‘NoopFirewallDriver‘\n
原因是:設定檔中
firewall_driver=nova.virt.libvirt.firewall.NoopFirewallDrive
替換成
firewall_driver=nova.virt.firewall.NoopFirewallDrive
6.openstack命令無法使用?
yum install python-openstackclient
7.控制節點執行neutron agent-list出錯
Unable to establish connection to http://controller:9696/v2.0/agents.json
8.時間不同步導致 neutron ageng-list xxx的問題
同步節點間的時間就可以了
9.compute節點報錯
ConnectionRefused: Unable to establish connection to http://controller:35357/v2.0/tokens
原因是控制節點的 防火牆導致的,關閉防火牆即可 systemctl stop firewall.service
10.vnc串連虛擬機器失敗原因
由於在COMPUTE節點的防火牆沒有放開5900+連接埠導致的
centos 7 安裝openstack kilo in three node