Comment 0 for bug 974293

Revision history for this message
Unmesh Gurjar (unmesh-gurjar) wrote :

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