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 0x7fe3fd346b50>
    test_case : OneAzConnectivity
    test_tcp_session_reestablishment (c2tests.vpc.oneaz_connectivity.OneAzConnectivity)
    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 : OneAzConnectivity
    test_tcp_session_reestablishment (c2tests.vpc.oneaz_connectivity.OneAzConnectivity)
    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 0x7fe3fd346b50>
    testMethod : method
    <bound method OneAzConnectivity.test_tcp_session_reestablishment of <c2tests.vpc.oneaz_connectivity.OneAzConnectivity testMethod=test_tcp_session_reestablishment>>

    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/c2tests/vpc/oneaz_connectivity.py in test_tcp_session_reestablishment (arguments )

    self : OneAzConnectivity
    test_tcp_session_reestablishment (c2tests.vpc.oneaz_connectivity.OneAzConnectivity)
    1. # increase timeout if test flaps (but not more than 1sec)
    2. timeout = 0.2
    3. key, instances = self.infrastructure_provisioning(self.vpc,
    4. subnets_count=1,
    5. instances_per_subnet=1)
    6. curl_response = re.compile(r"real.*(\d.\d+)")
    7. for instance in instances:
    8. curl = (f"time -p "

    Locals

    timeout : float
    0.2

    Globals

  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in infrastructure_provisioning (arguments )

    self : OneAzConnectivity
    test_tcp_session_reestablishment (c2tests.vpc.oneaz_connectivity.OneAzConnectivity)
    vpc : VPC
    VPC:vpc-C78F2D02
    subnets_count : int
    1
    instances_per_subnet : int
    1
    azs : list
    ['az-1']
    subnet_prefix : NoneType
    None
    subnet_cidrs : NoneType
    None
    associate_eip : bool
    True
    register_template : bool
    True
    **kwargs : dict
    {}
    1. if associate_eip:
    2. common.parallelize(
    3. utils.check_ssh,
    4. instances,
    5. threads=len(instances),
    6. check_errors=True,
    7. )
    8. ssh_key = instances[0][0]
    9. instances = [i[1] for i in instances]

    Locals

    cidrs : generator
    <generator object VPCTestCase.infrastructure_provisioning.<locals>.<genexpr> at 0x7fe3ef109850>
    current_azs : ResultSet
    [Zone:az-1]
    instances : list
    [('/tmp/tmp708izosz.pub', Instance:i-0C689FC0)]
    snapshot : Snapshot
    Snapshot:snap-EA91722E
    ssh_key : NoneType
    None
    subnets : list
    [Subnet:subnet-E80920C0]
    subnets_prefix : int
    24
    template_id : str
    cmi-9720C903
    vpc_network : IPv4Network
    192.168.0.0/24
    vpc_prefix : int
    24

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7fe407aa0ed0>
  5. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/common.py in parallelize (arguments )

    func : function
    <function check_ssh at 0x7fe4061c6560>
    data : list
    [('/tmp/tmp708izosz.pub', Instance:i-0C689FC0)]
    threads : int
    1
    log_errors : bool
    False
    check_errors : bool
    True
    1. except Exception as e:
    2. if log_errors:
    3. logger.exception("Parallelize of %s for %s failed.", func, element)
    4. if check_errors:
    5. raise e
    6. return [e]
    7. else:
    8. results = []

    Locals

    element : tuple
    ('/tmp/tmp708izosz.pub', Instance:i-0C689FC0)

    Globals

    AVAILABLE_MARKERS : list
    ['exclude']
    BASE_OBJECT_TYPES : tuple
    (<class 'str'>, <class 'int'>, <class 'bool'>)
    EXCLUDE_ATTRIBUTE : str
    __c2tests_exclude__
    EXCLUDE_MARKER : str
    exclude
    IMAGES : dict
    {'cirros-0.3.4-x86_64-disk.raw': '/root/c2tests/.venv/var/lib/c2tests/images/cirros-0.3.4-x86_64-disk.raw.bz2', 'openwrt.img': '/root/c2tests/.venv/var/lib/c2tests/images/openwrt.img.bz2', 'tiny_core.vmdk': '/root/c2tests/.venv/var/lib/c2tests/images/tiny_core.vmdk', 'empty.ova': '/root/c2tests/.venv/var/lib/c2tests/images/empty.ova', 'tiny_core.ova': '/root/c2tests/.venv/var/lib/c2tests/images/tiny_core.ova'}
    IMAGES_BUCKET_PREFIX : str
    c2tests-images
    logger : RootLogger
    <RootLogger root (DEBUG)>
    mark : _Mark
    <c2tests.common._Mark object at 0x7fe406d930d0>
    MARKER_ATTRIBUTE : str
    __c2tests_marks__
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/common.py in parallelize (arguments )

    func : function
    <function check_ssh at 0x7fe4061c6560>
    data : list
    [('/tmp/tmp708izosz.pub', Instance:i-0C689FC0)]
    threads : int
    1
    log_errors : bool
    False
    check_errors : bool
    True
    1. if len(data) == 0:
    2. return []
    3. elif len(data) == 1:
    4. for element in data:
    5. try:
    6. return [func(element)]
    7. except Exception as e:
    8. if log_errors:
    9. logger.exception("Parallelize of %s for %s failed.", func, element)

    Locals

    element : tuple
    ('/tmp/tmp708izosz.pub', Instance:i-0C689FC0)

    Globals

    AVAILABLE_MARKERS : list
    ['exclude']
    BASE_OBJECT_TYPES : tuple
    (<class 'str'>, <class 'int'>, <class 'bool'>)
    EXCLUDE_ATTRIBUTE : str
    __c2tests_exclude__
    EXCLUDE_MARKER : str
    exclude
    IMAGES : dict
    {'cirros-0.3.4-x86_64-disk.raw': '/root/c2tests/.venv/var/lib/c2tests/images/cirros-0.3.4-x86_64-disk.raw.bz2', 'openwrt.img': '/root/c2tests/.venv/var/lib/c2tests/images/openwrt.img.bz2', 'tiny_core.vmdk': '/root/c2tests/.venv/var/lib/c2tests/images/tiny_core.vmdk', 'empty.ova': '/root/c2tests/.venv/var/lib/c2tests/images/empty.ova', 'tiny_core.ova': '/root/c2tests/.venv/var/lib/c2tests/images/tiny_core.ova'}
    IMAGES_BUCKET_PREFIX : str
    c2tests-images
    logger : RootLogger
    <RootLogger root (DEBUG)>
    mark : _Mark
    <c2tests.common._Mark object at 0x7fe406d930d0>
    MARKER_ATTRIBUTE : str
    __c2tests_marks__
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
  7. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in check_ssh (arguments )

    instance : tuple
    ('/tmp/tmp708izosz.pub', Instance:i-0C689FC0)
    1. def check_ssh(instance):
    2. """Helper for parallel using of 'long_ssh_test'."""
    3. return long_ssh_test(*instance)
    4. RULES = [
    5. {

    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 long_ssh_test (arguments )

    keypath : str
    /tmp/tmp708izosz.pub
    instance : Instance
    Instance:i-0C689FC0
    1. def long_ssh_test(keypath, instance):
    2. """Getting instance id frome metadata server w/retries"""
    3. wait_long(lambda: ssh_test(instance.ip_address, keypath) == instance.id)
    4. def check_ssh(instance):
    5. """Helper for parallel using of 'long_ssh_test'."""

    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'}]
  9. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments )

    func : function
    <function long_ssh_test.<locals>.<lambda> at 0x7fe3fc7870e0>
    *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'}]
  10. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait (arguments )

    timeout : int
    300
    func : function
    <function long_ssh_test.<locals>.<lambda> at 0x7fe3fc7870e0>
    *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
    1708646121.9062996
    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-23 02:55:36
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