Scenario:
I have a running instance in my devstack environment (using master branch). Then I ran the unit test suite and the Nova instances directory got deleted.
My instances directory is '/opt/stack/nova/instances' and all instances are lost.
The periodic task 'update_available_resource' fails with the following stack trace:
2012-04-05 06:51:20 DEBUG nova.manager [-] Running periodic task ComputeManager.update_available_resource from (pid=12348) periodic_tasks /opt/stack/nova/nova/manager.p
y:152
2012-04-05 06:51:20 ERROR nova.manager [-] Error during ComputeManager.update_available_resource: [Errno 2] No such file or directory: '/opt/stack/nova/instances'
2012-04-05 06:51:20 TRACE nova.manager Traceback (most recent call last):
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/nova/nova/manager.py", line 155, in periodic_tasks
2012-04-05 06:51:20 TRACE nova.manager task(self, context)
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/nova/nova/compute/manager.py", line 2403, in update_available_resource
2012-04-05 06:51:20 TRACE nova.manager self.driver.update_available_resource(context, self.host)
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/nova/nova/virt/libvirt/connection.py", line 2025, in update_available_resource
2012-04-05 06:51:20 TRACE nova.manager 'local_gb': self.get_local_gb_total(),
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/nova/nova/virt/libvirt/connection.py", line 1839, in get_local_gb_total
2012-04-05 06:51:20 TRACE nova.manager stats = libvirt_utils.get_fs_info(FLAGS.instances_path)
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/nova/nova/virt/libvirt/utils.py", line 277, in get_fs_info
2012-04-05 06:51:20 TRACE nova.manager hddinfo = os.statvfs(path)
2012-04-05 06:51:20 TRACE nova.manager OSError: [Errno 2] No such file or directory: '/opt/stack/nova/instances'
2012-04-05 06:51:20 TRACE nova.manager
2012-04-05 06:51:20 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_rebooting_instances from (pid=12348) periodic_tasks /opt/stack/nova/nova/manager.p
y:152
2012-04-05 06:51:20 DEBUG nova.manager [-] Skipping ComputeManager._cleanup_running_deleted_instances, 17 ticks left until next run from (pid=12348) periodic_tasks /opt
/stack/nova/nova/manager.py:147
Scenario:
I have a running instance in my devstack environment (using master branch). Then I ran the unit test suite and the Nova instances directory got deleted.
My instances directory is '/opt/stack/ nova/instances' and all instances are lost.
The periodic task 'update_ available_ resource' fails with the following stack trace:
2012-04-05 06:51:20 DEBUG nova.manager [-] Running periodic task ComputeManager. update_ available_ resource from (pid=12348) periodic_tasks /opt/stack/ nova/nova/ manager. p update_ available_ resource: [Errno 2] No such file or directory: '/opt/stack/ nova/instances' nova/nova/ manager. py", line 155, in periodic_tasks nova/nova/ compute/ manager. py", line 2403, in update_ available_ resource update_ available_ resource( context, self.host) nova/nova/ virt/libvirt/ connection. py", line 2025, in update_ available_ resource local_gb_ total() , nova/nova/ virt/libvirt/ connection. py", line 1839, in get_local_gb_total utils.get_ fs_info( FLAGS.instances _path) nova/nova/ virt/libvirt/ utils.py" , line 277, in get_fs_info nova/instances' _poll_rebooting _instances from (pid=12348) periodic_tasks /opt/stack/ nova/nova/ manager. p _cleanup_ running_ deleted_ instances, 17 ticks left until next run from (pid=12348) periodic_tasks /opt nova/nova/ manager. py:147
y:152
2012-04-05 06:51:20 ERROR nova.manager [-] Error during ComputeManager.
2012-04-05 06:51:20 TRACE nova.manager Traceback (most recent call last):
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/
2012-04-05 06:51:20 TRACE nova.manager task(self, context)
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/
2012-04-05 06:51:20 TRACE nova.manager self.driver.
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/
2012-04-05 06:51:20 TRACE nova.manager 'local_gb': self.get_
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/
2012-04-05 06:51:20 TRACE nova.manager stats = libvirt_
2012-04-05 06:51:20 TRACE nova.manager File "/opt/stack/
2012-04-05 06:51:20 TRACE nova.manager hddinfo = os.statvfs(path)
2012-04-05 06:51:20 TRACE nova.manager OSError: [Errno 2] No such file or directory: '/opt/stack/
2012-04-05 06:51:20 TRACE nova.manager
2012-04-05 06:51:20 DEBUG nova.manager [-] Running periodic task ComputeManager.
y:152
2012-04-05 06:51:20 DEBUG nova.manager [-] Skipping ComputeManager.
/stack/