I am using a mysql database. <div>I tried yesterday to re-install all nova services (just to identify the source of the problem). So, I noticed that nova-compute is the failed service. It does not restart when I set the "libvirt_type" to xen at the nova-compute.conf file. Actually I am using an Ubuntu  server 12.04 with Xen and I installed the packaged version of nova-services.</div>
<div>Here are the errors that I got at the nova-compute.log</div><div>------------</div><div>2012-08-29 09:14:45 DEBUG nova.utils [req-4908690d-b61f-497d-a5d9-3265ca7869a1 None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=2641) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658</div>
<div>2012-08-29 09:14:45 CRITICAL nova [-] global name 'self' is not defined</div><div>2012-08-29 09:14:45 TRACE nova Traceback (most recent call last):</div><div>2012-08-29 09:14:45 TRACE nova   File "/usr/bin/nova-compute", line 49, in <module></div>
<div>2012-08-29 09:14:45 TRACE nova     service.wait()</div><div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait</div><div>2012-08-29 09:14:45 TRACE nova     _launcher.wait()</div>
<div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait</div><div>2012-08-29 09:14:45 TRACE nova     service.wait()</div><div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait</div>
<div>2012-08-29 09:14:45 TRACE nova     return self._exit_event.wait()</div><div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait</div><div>2012-08-29 09:14:45 TRACE nova     return hubs.get_hub().switch()</div>
<div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch</div><div>2012-08-29 09:14:45 TRACE nova     return self.greenlet.switch()</div><div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main</div>
<div>2012-08-29 09:14:45 TRACE nova     result = function(*args, **kwargs)</div><div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server</div><div>2012-08-29 09:14:45 TRACE nova     server.start()</div>
<div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/service.py", line 174, in start</div><div>2012-08-29 09:14:45 TRACE nova     self.manager.update_available_resource(ctxt)</div><div>
2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2409, in update_available_resource</div><div>2012-08-29 09:14:45 TRACE nova     self.driver.update_available_resource(context, self.host)</div>
<div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1934, in update_available_resource</div><div>2012-08-29 09:14:45 TRACE nova     'memory_mb': self.get_memory_mb_total(),</div>
<div>2012-08-29 09:14:45 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1711, in get_memory_mb_total</div><div>2012-08-29 09:14:45 TRACE nova     meminfo = self._conn.getInfo()[1]</div>
<div>2012-08-29 09:14:45 TRACE nova NameError: global name 'self' is not defined</div><div>2012-08-29 09:14:45 TRACE nova</div><div>------------------------</div><div><br></div><div>Thank you!</div><div>Afef <br><br>
<div class="gmail_quote">2012/8/28 Vishvananda Ishaya <span dir="ltr"><<a href="mailto:vishvananda@gmail.com" target="_blank">vishvananda@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have had problems using nova-manage db sync when using sqlite and the packaged version of sqlalchemy. If you are trying to do this, you probably need to do a sudo pip install -U sqlalchemy<br>
<br>
Vish<br>
<div class="HOEnZb"><div class="h5"><br>
On Aug 28, 2012, at 9:53 AM, Afef MDHAFFAR <<a href="mailto:afef.mdhaffar@gmail.com">afef.mdhaffar@gmail.com</a>> wrote:<br>
<br>
> Dear Openstack users,<br>
><br>
> I am trying to install openstack on an ubuntu server 12.04, with Xen as a virtualization technology.<br>
> I unfortunately got a problem while trying to install the nova service. Actually, the "nova-manage db sync" fails and returns the following warnings:<br>
> -------------------------------<br>
> 2012-08-28 18:47:24 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.migration' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.pyc'> from (pid=3101) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658<br>

> 2012-08-28 18:47:24 WARNING nova.utils [-] /usr/lib/python2.7/dist-packages/sqlalchemy/pool.py:639: SADeprecationWarning: The 'listeners' argument to Pool (and create_engine()) is deprecated.  Use event.listen().<br>

>   Pool.__init__(self, creator, **kw)<br>
><br>
> 2012-08-28 18:47:24 WARNING nova.utils [-] /usr/lib/python2.7/dist-packages/sqlalchemy/pool.py:145: SADeprecationWarning: Pool.add_listener is deprecated.  Use event.listen()<br>
>   self.add_listener(l)<br>
> ----------------------------<br>
><br>
> Would you please help me to fix this problem?<br>
><br>
> Thank you<br>
><br>
> Best regards,<br>
> Afef<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Afef MDHAFFAR<br><a href="http://www.redcad.org/members/mdhaffar/">http://www.redcad.org/members/mdhaffar/</a><br><br><br><br>
</div>