[Openstack] [nova-compute] Startup error

Jay Pipes jaypipes at gmail.com
Fri Apr 27 18:40:49 UTC 2012


Hi Leander,

Looks like a misconfiguration. The base path for nova's instances is 
typically /var/lib/nova/instances, set by the instances_path 
configuration option.

Somehow it is being set to "/usr/lib/python2.7/dist-packages/instances", 
which is clearly incorrect.

How did you install your Nova code?

Best,
-jay

On 04/27/2012 12:00 PM, Leander Bessa wrote:
> Hello,
>
> I'm clueless as how to solve this problem, any ideas?
>
>         DEBUG nova.utils [req-007e9c3f-2dcb-4b42-8486-800a51e272e1 None
>         None] backend <module 'nova.db.sqlalchemy.api' from
>         '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'>
>         from (pid=17035) __get_backend
>         /usr/lib/python2.7/dist-packages/nova/utils.py:658
>
>         Traceback (most recent call last):
>
>            File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py",
>         line 336, in fire_timers
>
>              timer()
>
>            File
>         "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line
>         56, in __call__
>
>              cb(*args, **kw)
>
>            File
>         "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line
>         192, in main
>
>              result = function(*args, **kwargs)
>
>            File "/usr/lib/python2.7/dist-packages/nova/service.py", line
>         101, in run_server
>
>              server.start()
>
>            File "/usr/lib/python2.7/dist-packages/nova/service.py", line
>         174, in start
>
>              self.manager.update_available_resource(ctxt)
>
>            File
>         "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
>         2403, in update_available_resource
>
>              self.driver.update_available_resource(context, self.host)
>
>            File
>         "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py",
>         line 1898, in update_available_resource
>
>         'local_gb': self.get_local_gb_total(),
>
>            File
>         "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py",
>         line 1712, in get_local_gb_total
>
>              stats = libvirt_utils.get_fs_info(FLAGS.instances_path)
>
>            File
>         "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/utils.py",
>         line 277, in get_fs_info
>
>              hddinfo = os.statvfs(path)
>
>         OSError: [Errno 2] No such file or directory:
>         '/usr/lib/python2.7/dist-packages/instances'
>
>         2012-04-27 16:51:48 CRITICAL nova [-] [Errno 2] No such file or
>         directory: '/usr/lib/python2.7/dist-packages/instances'
>
>         2012-04-27 16:51:48 TRACE nova Traceback (most recent call last):
>
>         2012-04-27 16:51:48 TRACE nova   File "/usr/bin/nova-compute",
>         line 49, in <module>
>
>         2012-04-27 16:51:48 TRACE nova     service.wait()
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in
>         wait
>
>         2012-04-27 16:51:48 TRACE nova     _launcher.wait()
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in
>         wait
>
>         2012-04-27 16:51:48 TRACE nova     service.wait()
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line
>         166, in wait
>
>         2012-04-27 16:51:48 TRACE nova     return self._exit_event.wait()
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116,
>         in wait
>
>         2012-04-27 16:51:48 TRACE nova     return hubs.get_hub().switch()
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line
>         177, in switch
>
>         2012-04-27 16:51:48 TRACE nova     return self.greenlet.switch()
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line
>         192, in main
>
>         2012-04-27 16:51:48 TRACE nova     result = function(*args,
>         **kwargs)
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in
>         run_server
>
>         2012-04-27 16:51:48 TRACE nova     server.start()
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/nova/service.py", line 174, in
>         start
>
>         2012-04-27 16:51:48 TRACE nova
>         self.manager.update_available_resource(ctxt)
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
>         2403, in update_available_resource
>
>         2012-04-27 16:51:48 TRACE nova
>         self.driver.update_available_resource(context, self.host)
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py",
>         line 1898, in update_available_resource
>
>         2012-04-27 16:51:48 TRACE nova 'local_gb':
>         self.get_local_gb_total(),
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py",
>         line 1712, in get_local_gb_total
>
>         2012-04-27 16:51:48 TRACE nova     stats =
>         libvirt_utils.get_fs_info(FLAGS.instances_path)
>
>         2012-04-27 16:51:48 TRACE nova   File
>         "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/utils.py",
>         line 277, in get_fs_info
>
>         2012-04-27 16:51:48 TRACE nova     hddinfo = os.statvfs(path)
>
>         2012-04-27 16:51:48 TRACE nova OSError: [Errno 2] No such file
>         or directory: '/usr/lib/python2.7/dist-packages/instances'
>
>         2012-04-27 16:51:48 TRACE nova
>
>         Exception KeyError: KeyError(140477118368240,) in <module
>         'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
>
>
>
> Regards,
>
> Leander
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp




More information about the Openstack mailing list