9.在openstack-nova-compute启动时报错:
2012-04-14 00:33:54 TRACE nova return libvirt.openAuth(uri, auth, 0)
2012-04-14 00:33:54 TRACE nova File “/usr/lib64/Python2.6/site-packages/libvirt.py”, line 102, in openAuth
2012-04-14 00:33:54 TRACE nova if ret is None:raise libvirtError(‘virConnectOpenAuth() failed’)
2012-04-14 00:33:54 TRACE nova libvirtError: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock’: No such file or directory
2012-04-14 00:33:54 TRACE nova
问题libvirt服务没启动,需要启动libvirt服务。
SUSE SP2上在物理机启动过程中,openstack-nova-compute先于libvirtd启动, 每次重启物理机需要在手动重启openstack-nova-compute。(不知道他们怎么理解的,估计这个是个BUG,嘿嘿)
另外造成上述错误也有可能缺少相关的软件包,安装并重启服务:
suse:/var/log/nova # zypper install avahi
Loading repository data…
Reading installed packages…
Resolving package dependencies…
The following NEW packages are going to be installed:
avahi avahi-lang libavahi-core5 libdaemon0 nss-mdns nss-mdns-32bit
10.启动nova-network时报地址池被占用:
The ‘listeners’ argument to Pool (and create_engine()) is deprecated. Use event.listen().\n Pool.__init__(self, creator, **kw)\n\n2012-04-16 12:50:30 WARNING nova.utils [req-c4afc2fa-361a-4586-93aa-e203bff0937b None None] /usr/lib64/python2.6/site-packages/sqlalchemy/pool.py:145: SADeprecationWarning: Pool.add_listener is deprecated. Use event.listen()\n self.add_listener(l)\n\n\ndnsmasq: failed to create listening socket for 172.16.0.1: Address already in use\n”
解决方法:(这个问题为dnsmasq服务启动,如果再启动会占用原来的进程,多启动了一次)
/etc/init.d/dnsmasq stop
chkconfig dnsmasq off
排查问题使用–debug或者–verbose参数跟踪:
susesp2:~ # nova –debug list
connect: (127.0.0.1, 8774)
send: ‘GET /v1.1 HTTP/1.1\r\nHost: 127.0.0.1:8774\r\nx-auth-project-id: mycloud\r\naccept-encoding: gzip, deflate\r\nx-auth-user: kevin\r\nuser-agent: python-novaclient\r\nx-auth-key: kevin\r\naccept: application/json\r\n\r\n’
reply: ‘HTTP/1.1 204 No Content\r\n’
header: Content-Length: 0
header: X-Auth-Token: kevin:mycloud
header: X-Server-Management-Url: :8774/v1.1/mycloud
header: Content-Type: text/plain; charset=UTF-8
header: Date: Mon, 16 Apr 2012 03:19:47 GMT
send: ‘GET /v1.1/mycloud/servers/detail HTTP/1.1\r\nHost: 127.0.0.1:8774\r\nx-auth-project-id: mycloud\r\nx-auth-token: kevin:mycloud\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n’
reply: ‘HTTP/1.1 200 OK\r\n’
header: X-Compute-Request-Id: req-753d19f9-7267-410f-8591-f0fccb413cf9
header: Content-Type: application/json
header: Content-Length: 15
header: Date: Mon, 16 Apr 2012 03:19:47 GMT
+—-+——+——–+———-+
| ID | Name | Status | Networks |
+—-+——+——–+———-+
+—-+——+——–+———-+