<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>+1 you can’t use the libvirt specific firewall driver with XenAPI<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>There are some example nova.conf files here that may help:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://docs.openstack.org/folsom/openstack-compute/admin/content/xenapi-flat-dhcp-networking.html">http://docs.openstack.org/folsom/openstack-compute/admin/content/xenapi-flat-dhcp-networking.html</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you use DevStack, it should have “chosen” the correct firewall driver for you.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> openstack-bounces+john.garbutt=citrix.com@lists.launchpad.net [mailto:openstack-bounces+john.garbutt=citrix.com@lists.launchpad.net] <b>On Behalf Of </b>Mohammed Naser<br><b>Sent:</b> 21 November 2012 14:06<br><b>To:</b> Lei Zhang<br><b>Cc:</b> openstack@lists.launchpad.net<br><b>Subject:</b> Re: [Openstack] Citrix Xen Server + XenApi Failed to start nova-compute service<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Your firewall driver in your nova.conf seems to be incorrect<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><pre style='line-height:14.4pt;white-space:pre-wrap;overflow:auto'><span style='font-size:12.0pt;font-family:Consolas'>2012-11-21 01:33:47 TRACE nova     self.firewall_driver = fw_class(xenapi_session=self._session)<o:p></o:p></span></pre><pre style='line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/firewall.py", line 227, in __init__<o:p></o:p></span></pre></div><div><p class=MsoNormal>It's trying to use the libvirt driver.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal># grep firewall /etc/nova/nova.conf <o:p></o:p></p></div><div><p class=MsoNormal>firewall_driver=nova.virt.xenapi.firewall.Dom0IptablesFirewallDriver<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Good luck with OpenStack!<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Nov 21, 2012 at 1:46 AM, Lei Zhang <<a href="mailto:zhang.lei.fly@gmail.com" target="_blank">zhang.lei.fly@gmail.com</a>> wrote:<o:p></o:p></p><div><p style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><span style='font-family:"Helvetica","sans-serif";color:#222222'>Hi All, <o:p></o:p></span></p><p style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><span style='font-family:"Helvetica","sans-serif";color:#222222'>I am tring install the openstack with Xen Server following the guide of <a href="http://wiki.openstack.org/XenServer/XenXCPAndXenServer" target="_blank"><span style='color:#3333EE'>http://wiki.openstack.org/XenServer/XenXCPAndXenServer</span></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. <o:p></o:p></span></p><p style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><strong><span style='font-family:"Helvetica","sans-serif";color:#222222'>Error Message</span></strong><span style='font-family:"Helvetica","sans-serif";color:#222222'> <o:p></o:p></span></p><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt;overflow:auto'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>root@ubuntu:/etc/nova# nova-compute <o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 CRITICAL nova [-] 'get_connection'<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova Traceback (most recent call last):<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/bin/nova-compute", line 47, in <o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     server = service.Service.create(binary='nova-compute')<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 241, in create<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     report_interval, periodic_interval)<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 150, in __init__<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     self.manager = manager_class(host=self.host, *args, **kwargs)<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 204, in __init__<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     utils.import_object(compute_driver),<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 89, in import_object<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     return cls()<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/connection.py", line 76, in get_connection<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     conn = xenapi_conn.get_connection(read_only)<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>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<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     return XenAPIConnection(url, username, password)<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi_conn.py", line 157, in __init__<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     self._vmops = vmops.VMOps(self._session, self._product_version)<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 160, in __init__<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     self.firewall_driver = fw_class(xenapi_session=self._session)<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/firewall.py", line 227, in __init__<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova     self.nwfilter = NWFilterFirewall(kwargs['get_connection'])<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova KeyError: 'get_connection'<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>2012-11-21 01:33:47 TRACE nova <o:p></o:p></span></pre><p style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm'><strong><span style='font-family:"Helvetica","sans-serif";color:#222222'>nova.conf</span></strong><span style='font-family:"Helvetica","sans-serif";color:#222222'> <o:p></o:p></span></p><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt;overflow:auto'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>connection_type=xenapi<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>xenapi_connection_password=*******<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>xenapi_connection_url=<a href="http://192.168.0.98" target="_blank">http://192.168.0.98</a><o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.4pt'><span style='font-size:12.0pt;font-family:Consolas;color:#222222'>xenapi_connection_username=root<o:p></o:p></span></pre></div><div><p class=MsoNormal><span style='color:#888888'>-- <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#888888'>Lei Zhang</span><span style='color:#888888'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#888888'>Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a></span><span style='color:#888888'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'>twitter/weibo: @jeffrey4l<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p></div><p class=MsoNormal><br><br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <br><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:steelblue'>Mohammed Naser</span><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'> — <b>vexxhost</b></span><o:p></o:p></p><div><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gainsboro'>-----------------------------------------------------</span><o:p></o:p></p></div><div><p class=MsoNormal><b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'>D. </span></b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'>514-316-8872</span><o:p></o:p></p></div><div><p class=MsoNormal><b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'>D.</span></b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'> 800-910-1726 ext. 200</span><o:p></o:p></p></div><div><p class=MsoNormal><b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'>E. </span></b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'><a href="mailto:mnaser@vexxhost.com" target="_blank">mnaser@vexxhost.com</a></span><o:p></o:p></p></div><div><p class=MsoNormal><b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'>W. </span></b><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'><a href="http://vexxhost.com/" target="_blank">http://vexxhost.com</a></span><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>