← Back to team overview

openstack team mailing list archive

Re: Citrix Xen Server + XenApi Failed to start nova-compute service

 

+1 you can’t use the libvirt specific firewall driver with XenAPI

There are some example nova.conf files here that may help:
http://docs.openstack.org/folsom/openstack-compute/admin/content/xenapi-flat-dhcp-networking.html

If you use DevStack, it should have “chosen” the correct firewall driver for you.

Cheers,
John

From: openstack-bounces+john.garbutt=citrix.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+john.garbutt=citrix.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mohammed Naser
Sent: 21 November 2012 14:06
To: Lei Zhang
Cc: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] Citrix Xen Server + XenApi Failed to start nova-compute service

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@xxxxxxxxx<mailto:zhang.lei.fly@xxxxxxxxx>> 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@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@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx<mailto:mnaser@xxxxxxxxxxxx>
W. http://vexxhost.com<http://vexxhost.com/>


References