I am using a mysql database. 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. Here are the errors that I got at the nova-compute.log ------------ 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 2012-08-29 09:14:45 CRITICAL nova [-] global name 'self' is not defined 2012-08-29 09:14:45 TRACE nova Traceback (most recent call last): 2012-08-29 09:14:45 TRACE nova File "/usr/bin/nova-compute", line 49, in <module> 2012-08-29 09:14:45 TRACE nova service.wait() 2012-08-29 09:14:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait 2012-08-29 09:14:45 TRACE nova _launcher.wait() 2012-08-29 09:14:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait 2012-08-29 09:14:45 TRACE nova service.wait() 2012-08-29 09:14:45 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait 2012-08-29 09:14:45 TRACE nova return self._exit_event.wait() 2012-08-29 09:14:45 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait 2012-08-29 09:14:45 TRACE nova return hubs.get_hub().switch() 2012-08-29 09:14:45 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch 2012-08-29 09:14:45 TRACE nova return self.greenlet.switch() 2012-08-29 09:14:45 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main 2012-08-29 09:14:45 TRACE nova result = function(*args, **kwargs) 2012-08-29 09:14:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server 2012-08-29 09:14:45 TRACE nova server.start() 2012-08-29 09:14:45 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 174, in start 2012-08-29 09:14:45 TRACE nova self.manager.update_available_resource(ctxt) 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 2012-08-29 09:14:45 TRACE nova self.driver.update_available_resource(context, self.host) 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 2012-08-29 09:14:45 TRACE nova 'memory_mb': self.get_memory_mb_total(), 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 2012-08-29 09:14:45 TRACE nova meminfo = self._conn.getInfo()[1] 2012-08-29 09:14:45 TRACE nova NameError: global name 'self' is not defined 2012-08-29 09:14:45 TRACE nova ------------------------
Thank you! Afef 2012/8/28 Vishvananda Ishaya <vishvana...@gmail.com> > 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 > > Vish > > On Aug 28, 2012, at 9:53 AM, Afef MDHAFFAR <afef.mdhaf...@gmail.com> > wrote: > > > Dear Openstack users, > > > > I am trying to install openstack on an ubuntu server 12.04, with Xen as > a virtualization technology. > > I unfortunately got a problem while trying to install the nova service. > Actually, the "nova-manage db sync" fails and returns the following > warnings: > > ------------------------------- > > 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 > > 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(). > > Pool.__init__(self, creator, **kw) > > > > 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() > > self.add_listener(l) > > ---------------------------- > > > > Would you please help me to fix this problem? > > > > Thank you > > > > Best regards, > > Afef > > > > > > _______________________________________________ > > Mailing list: https://launchpad.net/~openstack > > Post to : openstack@lists.launchpad.net > > Unsubscribe : https://launchpad.net/~openstack > > More help : https://help.launchpad.net/ListHelp > > -- Afef MDHAFFAR http://www.redcad.org/members/mdhaffar/
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp