def tearDown(self):
     """Be nice to other tests and restart the compute service normally."""
     # Wipe the instance from the DB so it won't count against us.
     test_config.volume_service.start()
     restart_compute_service()
     if self.instance_exists:
         self.db.instance_destroy(context.get_admin_context(), self.local_id)
 def setUp(self):
     """Sets up the client."""
     wait_until_scheduler_is_ready()
     test_config.volume_service.stop()
     assert_false(test_config.volume_service.is_running)
     restart_compute_service(["--trove_volume_time_out=%d" % VOLUME_TIME_OUT])
     self.init("TEST_FAIL_VOLUME_")
     self.instance_exists = False
Пример #3
0
 def tearDown(self):
     """Be nice to other tests and restart the compute service normally."""
     # Wipe the instance from the DB so it won't count against us.
     test_config.volume_service.start()
     restart_compute_service()
     if self.instance_exists:
         self.db.instance_destroy(context.get_admin_context(),
                                  self.local_id)
Пример #4
0
 def setUp(self):
     """Sets up the client."""
     wait_until_scheduler_is_ready()
     test_config.volume_service.stop()
     assert_false(test_config.volume_service.is_running)
     restart_compute_service(['--reddwarf_volume_time_out=%d'
                              % VOLUME_TIME_OUT])
     self.init("TEST_FAIL_VOLUME_")
     self.instance_exists = False
 def wait_for_vz_to_restart(self):
     """Tests Compute managers init_host to bring the VZ online.
        This test manually stops the vz and iscsi, and then restarts
        compute and waits for the init_host to update the status."""
     self.stop_vz()
     self.logout_iscsi()
     restart_compute_service()
     self.ensure_vz_power_state(power_state.RUNNING)
     # Also make sure the actual VZ has the same running state
     self.ensure_vz_actual_state(power_state.RUNNING)
 def wait_for_vz_to_restart(self):
     """Tests Compute managers init_host to bring the VZ online.
        This test manually stops the vz and iscsi, and then restarts
        compute and waits for the init_host to update the status."""
     self.stop_vz()
     self.logout_iscsi()
     restart_compute_service()
     self.ensure_vz_power_state(power_state.RUNNING)
     # Also make sure the actual VZ has the same running state
     self.ensure_vz_actual_state(power_state.RUNNING)
 def tearDown(self):
     """Be nice to other tests and restart the compute service normally."""
     restart_compute_service()
 def setUp(self):
     """Sets up the client."""
     wait_until_scheduler_is_ready()
     restart_compute_service(["--trove_guest_initialize_time_out=%d" % GUEST_INSTALL_TIMEOUT])
     self.init("TEST_FAIL_GUEST_")
Пример #9
0
 def tearDown(self):
     """Be nice to other tests and restart the compute service normally."""
     restart_compute_service()
Пример #10
0
 def setUp(self):
     """Sets up the client."""
     wait_until_scheduler_is_ready()
     restart_compute_service(['--reddwarf_guest_initialize_time_out=%d'
                              % GUEST_INSTALL_TIMEOUT])
     self.init("TEST_FAIL_GUEST_")