TimeoutException

Timed out. search by Google

args : tuple
('Timed out.',)

Traceback

  1. /usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments )

    self : _Outcome
    <unittest.case._Outcome object at 0x7fe405ba3710>
    test_case : Instances
    test_snapshotting_stopped_standard_hvm-legacy (c2tests.ec2.instances.Instances)
    isTest : bool
    True
    1. @contextlib.contextmanager
    2. def testPartExecutor(self, test_case, isTest=False):
    3. old_success = self.success
    4. self.success = True
    5. try:
    6. yield
    7. except KeyboardInterrupt:
    8. raise
    9. except SkipTest as e:
    10. self.success = False

    Locals

    exc_info : NoneType
    None
    old_success : bool
    True

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fe415310fc0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  2. /usr/local/lib/python3.7/unittest/case.py in run (arguments )

    self : Instances
    test_snapshotting_stopped_standard_hvm-legacy (c2tests.ec2.instances.Instances)
    result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    1. with outcome.testPartExecutor(self):
    2. self.setUp()
    3. if outcome.success:
    4. outcome.expecting_failure = expecting_failure
    5. with outcome.testPartExecutor(self, isTest=True):
    6. testMethod()
    7. outcome.expecting_failure = False
    8. with outcome.testPartExecutor(self):
    9. self.tearDown()

    Locals

    expecting_failure : bool
    False
    expecting_failure_class : bool
    False
    expecting_failure_method : bool
    False
    orig_result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    outcome : _Outcome
    <unittest.case._Outcome object at 0x7fe405ba3710>
    testMethod : method
    <bound method Instances.test_snapshotting_stopped of <c2tests.ec2.instances.Instances testMethod=test_snapshotting_stopped_standard_hvm-legacy>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fe415310fc0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  3. /root/c2tests/.venv/lib/python3.7/site-packages/parameterized/parameterized.py in standalone_func (arguments )

    *a : tuple
    (<c2tests.ec2.instances.Instances testMethod=test_snapshotting_stopped_standard_hvm-legacy>,)
    1. @classmethod
    2. def param_as_standalone_func(cls, p, func, name):
    3. @wraps(func)
    4. def standalone_func(*a):
    5. return func(*(a + p.args), **p.kwargs)
    6. standalone_func.__name__ = name
    7. # place_as is used by py.test to determine what source file should be
    8. # used for this test.

    Locals

    p : param
    param(*('standard', 'hvm-legacy'), **{})

    Globals

    PY2 : bool
    False
    PY3 : bool
    True
    string_types : tuple
    (<class 'str'>,)
  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/instances.py in test_snapshotting_stopped (arguments )

    self : Instances
    test_snapshotting_stopped_standard_hvm-legacy (c2tests.ec2.instances.Instances)
    volume_type : str
    standard
    virt_type : str
    hvm-legacy
    1. key_path, instance = self._create_instance(volume_type, virt_type)
    2. check_volumes(self, instance, key_path, volume_type, virt_type)
    3. @common.parametrize_with_volume_types(constants.VIRT_TYPES)
    4. def test_snapshotting_stopped(self, volume_type, virt_type):
    5. self._instance_snapshotting(volume_type, virt_type)
    6. @common.parametrize_with_sio_volume_type(constants.VIRT_TYPES)
    7. def test_snapshotting_running(self, volume_type, virt_type):
    8. self._instance_snapshotting(volume_type, virt_type, running=True)
  5. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/instances.py in _instance_snapshotting (arguments )

    self : Instances
    test_snapshotting_stopped_standard_hvm-legacy (c2tests.ec2.instances.Instances)
    volume_type : str
    standard
    virt_type : str
    hvm-legacy
    running : bool
    False
    no_reboot : bool
    False
    1. return key_path, instance
    2. def _instance_snapshotting(self, volume_type, virt_type, running=False, no_reboot=False):
    3. """Helps snapshot instance with specified type."""
    4. key_path, instance = self._create_instance(volume_type, virt_type)
    5. # Performs sync filesystems on all attached drives
    6. utils.ssh(instance.ip_address, key_path, "/bin/sync")
    7. if not running:
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/instances.py in _create_instance (arguments )

    self : Instances
    test_snapshotting_stopped_standard_hvm-legacy (c2tests.ec2.instances.Instances)
    volume_type : str
    standard
    virt_type : str
    hvm-legacy
    1. """Helps run instance with specified type."""
    2. key_path, instance = self.run_instance_from_template(virtualization_type=virt_type,
    3. volume_type=volume_type)
    4. utils.wait_long(
    5. lambda: utils.ssh_test(instance.ip_address, key_path) == instance.id)
    6. return key_path, instance
    7. def _instance_snapshotting(self, volume_type, virt_type, running=False, no_reboot=False):
    8. """Helps snapshot instance with specified type."""

    Locals

    instance : Instance
    Instance:i-EE3DF900
    key_path : str
    /tmp/tmp7oduaq55.pub

    Globals

  7. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments )

    func : function
    <function Instances._create_instance.<locals>.<lambda> at 0x7fe3fd64a8c0>
    *args : tuple
    ()
    **kwargs : dict
    {}
    1. def wait_long(func, *args, **kwargs):
    2. """Fail unless func return success within the long timeout"""
    3. return wait(5 * constants.MINUTE_SECONDS, func, *args, **kwargs)
    4. def wait_long_enough(func, *args, **kwargs):
    5. """Fail unless func return success within the enough long timeout."""

    Locals

    Globals

    _DD : str
    /bin/dd
    _QEMU_IMG : str
    /usr/bin/qemu-img
    LOG : RootLogger
    <RootLogger root (DEBUG)>
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
    RULES : list
    [{'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'tcp', 'from_port': '22', 'to_port': '22'}, {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}]
  8. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait (arguments )

    timeout : int
    300
    func : function
    <function Instances._create_instance.<locals>.<lambda> at 0x7fe3fd64a8c0>
    *args : tuple
    ()
    **kwargs : dict
    {}
    1. result = func(*args, **kwargs)
    2. if result:
    3. return result
    4. time.sleep(min(timeout, 0.1))
    5. raise exceptions.TimeoutException()
    6. def wait_short(func, *args, **kwargs):
    7. """Fail unless func return success within the timeout"""

    Locals

    endtime : float
    1708631566.068412
    result : bool
    False

    Globals

    _DD : str
    /bin/dd
    _QEMU_IMG : str
    /usr/bin/qemu-img
    LOG : RootLogger
    <RootLogger root (DEBUG)>
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
    RULES : list
    [{'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'tcp', 'from_port': '22', 'to_port': '22'}, {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}]

Environment

Time of report generation
2024-02-22 22:53:00
Python version
3.7.9 (default, Sep 21 2022, 19:11:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Path to executable
/root/c2tests/.venv/bin/python
Working directory
/root/c2tests
Arguments vector
  1. /root/c2tests/.venv/bin/c2tests
  2. run
  3. -s
  4. ec2
  5. s3
  6. vpc