Your firewall driver in your nova.conf seems to be incorrect<div><br></div><div><pre style="white-space:pre-wrap;font-size:1em;line-height:1.2em;font-family:Consolas,Inconsolata,Courier,monospace;overflow:auto">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__</pre></div><div class="gmail_extra">It's trying to use the libvirt driver.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"># grep firewall /etc/nova/nova.conf </div><div class="gmail_extra">firewall_driver=nova.virt.xenapi.firewall.Dom0IptablesFirewallDriver</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Good luck with OpenStack!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 1:46 AM, Lei Zhang <span dir="ltr"><<a href="mailto:zhang.lei.fly@gmail.com" target="_blank">zhang.lei.fly@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="line-height:1.2;color:rgb(34,34,34);font-size:1em;font-family:Helvetica,arial,freesans,clean,sans-serif;border:none">


<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" target="_blank">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:1em;font-family:Consolas,Inconsolata,Courier,monospace;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:1em;font-family:Consolas,Inconsolata,Courier,monospace;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" target="_blank">http://192.168.0.98</a>
xenapi_connection_username=root
</pre></div><span class=""><font color="#888888"><div>-- <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>
</font></span><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family:Arial;font-size:8pt"><span style="color:rgb(70,130,180);font-size:10pt">Mohammed Naser</span> — <span style="font-weight:bold">vexxhost</span><br>
</span><div><span style="font-family:Arial;font-size:8pt"><span><span style="color:rgb(220,220,220)">-----------------------------------------------------</span></span></span></div><div><span style="font-family:Arial;font-size:11px;font-weight:bold">D. </span><span style="font-family:Arial;font-size:11px">514-316-8872</span></div>
<div><span style="font-family:Arial;font-size:11px"><span style="font-weight:bold">D.</span> 800-910-1726 ext. 200</span></div><div><span style="font-family:Arial;font-size:11px"><span style="font-weight:bold">E. </span><a href="mailto:mnaser@vexxhost.com" target="_blank">mnaser@vexxhost.com</a></span></div>
<div><span style="font-family:Arial;font-size:11px"><span style="font-weight:bold">W. </span><a href="http://vexxhost.com/" target="_blank">http://vexxhost.com</a></span></div><br>
</div>