<div class="markdown-here-wrapper" id="markdown-here-wrapper-563201" style="font-size:1em;font-family:Helvetica,arial,freesans,clean,sans-serif;color:rgb(34,34,34);background-color:rgb(255,255,255);border:none;line-height:1.2">

<p style="margin:1em 0px">Hi All,

</p>
<p style="margin:1em 0px">I am tring install the openstack with Xen Server following the guide of <a href="http://wiki.openstack.org/XenServer/XenXCPAndXenServer" style="color:rgb(51,51,238);text-decoration:initial">http://wiki.openstack.org/XenServer/XenXCPAndXenServer</a>. 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.

</p>
<p style="margin:1em 0px"><strong>Error Message</strong>
</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;overflow:auto;margin:1em 0px">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 
</pre>

<p style="margin:1em 0px"><strong>nova.conf</strong>
</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;overflow:auto;margin:1em 0px">connection_type=xenapi
xenapi_connection_password=*******
xenapi_connection_url=<a href="http://192.168.0.98">http://192.168.0.98</a>
xenapi_connection_username=root
</pre></div><div class="markdown-here-signature">-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Lei Zhang</span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>

</span></div><div><font face="arial, sans-serif">Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a></font></div><div>twitter/weibo: @jeffrey4l</div><br>
</div>