Fix poll_rescued_instances periodic task
The poll_rescued_instances periodic task now checks the amount of time that an instance has been in the RESCUED stated before timing out the rescue. It also now performs the unrescue through the compute api in order to make sure the database is left in a consistent state. The poll_rescued_instances method is no longer necessary in the virt driver interface and has been removed. And also removed from the different virt drivers, since it was just doing a 'pass' in each of them. bug 1088625 bug 1088627 Change-Id: I75f7dc188cc49e5f6e5c8a3cb256d1c42ff7d882
This commit is contained in:
		| @@ -282,10 +282,6 @@ class _VirtDriverTestCase(_FakeDriverBackendTestCase): | ||||
|         instances = [self._get_running_instance()] | ||||
|         self.connection.poll_rebooting_instances(10, instances) | ||||
|  | ||||
|     @catch_notimplementederror | ||||
|     def test_poll_rescued_instances(self): | ||||
|         self.connection.poll_rescued_instances(10) | ||||
|  | ||||
|     @catch_notimplementederror | ||||
|     def test_migrate_disk_and_power_off(self): | ||||
|         instance_ref, network_info = self._get_running_instance() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Andrew Laski
					Andrew Laski