Timed out. search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
- outcome.expecting_failure = False
- with outcome.testPartExecutor(self):
- self.tearDown()
/root/c2tests/.venv/lib/python3.7/site-packages/parameterized/parameterized.py in standalone_func (arguments ▶)
- @classmethod
- def param_as_standalone_func(cls, p, func, name):
- @wraps(func)
- def standalone_func(*a):
- return func(*(a + p.args), **p.kwargs)
- standalone_func.__name__ = name
- # place_as is used by py.test to determine what source file should be
- # used for this test.
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/volumes.py in test_resizing_instance (arguments ▶)
- }
- driver = utils.VolumeDriverFactory.get_driver(volume_type)
- new_good_size = driver.max_size if size == "bigsize" else driver.next_size
- self._resizing_instance(volume_type, new_good_size, **kwargs)
- @common.parametrize_with_iops_provisioned_volume_types()
- def test_iops_changing(self, volume_type):
- volume = self.create_volume(volume_type=volume_type)
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/volumes.py in _resizing_instance (arguments ▶)
- def _resizing_instance(self, volume_type, new_good_size, system=True,
- stopped=False, deallocated=False):
- """Helper-proxy for resizing volume attached to instance"""
- instance, volume, key_path = self._operate_instance(
- volume_type, system=system, stopped=stopped, deallocated=deallocated)
- instance.update()
- ins_state_before_resize = instance.state
- self._resizing(volume, new_good_size)
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/volumes.py in _operate_instance (arguments ▶)
- stopped=False, deallocated=False):
- """Create and prepare instance for testing its volume."""
- key_path, instance = self.run_instance_from_template(volume_type=volume_type)
- utils.wait_long(
- lambda: utils.ssh_test(instance.ip_address, key_path) == instance.id)
- if system:
- device = instance.block_device_mapping[constants.TYPE_DISK + "1"]
- volume = self.get_all_volumes(volume_ids=[device.volume_id])[0]
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments ▶)
- def wait_long(func, *args, **kwargs):
- """Fail unless func return success within the long timeout"""
- return wait(5 * constants.MINUTE_SECONDS, func, *args, **kwargs)
- def wait_long_enough(func, *args, **kwargs):
- """Fail unless func return success within the enough long timeout."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait (arguments ▶)
- result = func(*args, **kwargs)
- if result:
- return result
- time.sleep(min(timeout, 0.1))
- raise exceptions.TimeoutException()
- def wait_short(func, *args, **kwargs):
- """Fail unless func return success within the timeout"""