Check for NotFound exception in setUp() function

test_resize_server_confirm_from_stopped test works fine when executed
alone but during a group execution it tries to delete the same instance
multiple times.

setUp() function is modified so that it catches NotFound exception and
create a new server instead of rebuilding (=deleting and creating) the
previous one.

Change-Id: Ie411268e37e4348a2434b473cd84e151a0a18c09
Closes-Bug: #1459516
diff --git a/tempest/api/compute/servers/test_server_actions.py b/tempest/api/compute/servers/test_server_actions.py
index c2ed0ce..ca016c0 100644
--- a/tempest/api/compute/servers/test_server_actions.py
+++ b/tempest/api/compute/servers/test_server_actions.py
@@ -42,6 +42,10 @@
         # Check if the server is in a clean state after test
         try:
             self.client.wait_for_server_status(self.server_id, 'ACTIVE')
+        except lib_exc.NotFound:
+            # The server was deleted by previous test, create a new one
+            server = self.create_test_server(wait_until='ACTIVE')
+            self.__class__.server_id = server['id']
         except Exception:
             # Rebuild server if something happened to it during a test
             self.__class__.server_id = self.rebuild_server(self.server_id)