[Openstack] Citrix Xen Server + XenApi Failed to start nova-compute service

Mohammed Naser mnaser at vexxhost.com
Wed Nov 21 14:06:06 UTC 2012


Your firewall driver in your nova.conf seems to be incorrect

2012-11-21 01:33:47 TRACE nova     self.firewall_driver =
fw_class(xenapi_session=self._session)
2012-11-21 01:33:47 TRACE nova   File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/firewall.py", line
227, in __init__

It's trying to use the libvirt driver.

# grep firewall /etc/nova/nova.conf
firewall_driver=nova.virt.xenapi.firewall.Dom0IptablesFirewallDriver

Good luck with OpenStack!

On Wed, Nov 21, 2012 at 1:46 AM, Lei Zhang <zhang.lei.fly at gmail.com> wrote:

> Hi All,
>
> I am tring install the openstack with Xen Server following the guide of
> http://wiki.openstack.org/XenServer/XenXCPAndXenServer. But I run into
> error when start the nova-compute service . Here is the error message. Who
> can figure out why it happended and how to fix this issue.
>
> *Error Message*
>
> root at ubuntu:/etc/nova# nova-compute
> 2012-11-21 01:33:47 CRITICAL nova [-] 'get_connection'
> 2012-11-21 01:33:47 TRACE nova Traceback (most recent call last):
> 2012-11-21 01:33:47 TRACE nova   File "/usr/bin/nova-compute", line 47, in
> 2012-11-21 01:33:47 TRACE nova     server = service.Service.create(binary='nova-compute')
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 241, in create
> 2012-11-21 01:33:47 TRACE nova     report_interval, periodic_interval)
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 150, in __init__
> 2012-11-21 01:33:47 TRACE nova     self.manager = manager_class(host=self.host, *args, **kwargs)
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 204, in __init__
> 2012-11-21 01:33:47 TRACE nova     utils.import_object(compute_driver),
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 89, in import_object
> 2012-11-21 01:33:47 TRACE nova     return cls()
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/connection.py", line 76, in get_connection
> 2012-11-21 01:33:47 TRACE nova     conn = xenapi_conn.get_connection(read_only)
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py", line 144, in get_connection
> 2012-11-21 01:33:47 TRACE nova     return XenAPIConnection(url, username, password)
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py", line 157, in __init__
> 2012-11-21 01:33:47 TRACE nova     self._vmops = vmops.VMOps(self._session, self._product_version)
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 160, in __init__
> 2012-11-21 01:33:47 TRACE nova     self.firewall_driver = fw_class(xenapi_session=self._session)
> 2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/firewall.py", line 227, in __init__
> 2012-11-21 01:33:47 TRACE nova     self.nwfilter = NWFilterFirewall(kwargs['get_connection'])
> 2012-11-21 01:33:47 TRACE nova KeyError: 'get_connection'
> 2012-11-21 01:33:47 TRACE nova
>
> *nova.conf*
>
> connection_type=xenapi
> xenapi_connection_password=*******
> xenapi_connection_url=http://192.168.0.98
> xenapi_connection_username=root
>
> --
> Lei Zhang
>
> Blog: http://jeffrey4l.github.com
> twitter/weibo: @jeffrey4l
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Mohammed Naser — vexxhost
-----------------------------------------------------
D. 514-316-8872
D. 800-910-1726 ext. 200
E. mnaser at vexxhost.com
W. http://vexxhost.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121121/6a2d539f/attachment.html>


More information about the Openstack mailing list