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 0x7fe3ef4312d0>
    test_case : OneAzConnectivity
    test_ping_from_custom_ip_to_custom_ip_via_rtb_one_subnet (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_ping_from_custom_ip_to_custom_ip_via_rtb_one_subnet (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 0x7fe3ef4312d0>
    testMethod : method
    <bound method OneAzConnectivity.test_ping_from_custom_ip_to_custom_ip_via_rtb_one_subnet of <c2tests.vpc.oneaz_connectivity.OneAzConnectivity testMethod=test_ping_from_custom_ip_to_custom_ip_via_rtb_one_subnet>>

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

    self : OneAzConnectivity
    test_ping_from_custom_ip_to_custom_ip_via_rtb_one_subnet (c2tests.vpc.oneaz_connectivity.OneAzConnectivity)
    1. ping from inst2 (-I 10.0.1.1) to 10.0.0.1
    2. """
    3. behind_inst1 = "10.0.0.1"
    4. behind_inst2 = "10.0.1.1"
    5. key, instances = self.infrastructure_provisioning(self.vpc, 1, 2)
    6. instance1, instance2 = instances
    7. self.add_icmp_rules([behind_inst1, behind_inst2])

    Locals

    behind_inst1 : str
    10.0.0.1
    behind_inst2 : str
    10.0.1.1

    Globals

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

    self : OneAzConnectivity
    test_ping_from_custom_ip_to_custom_ip_via_rtb_one_subnet (c2tests.vpc.oneaz_connectivity.OneAzConnectivity)
    vpc : VPC
    VPC:vpc-545FA5EA
    subnets_count : int
    1
    instances_per_subnet : int
    2
    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 0x7fe3fd9f8f50>
    current_azs : ResultSet
    [Zone:az-1]
    instances : list
    [('/tmp/tmpacb9jb9g.pub', Instance:i-2208D900), ('/tmp/tmpswlxdkmt.pub', Instance:i-E0348940)]
    snapshot : Snapshot
    Snapshot:snap-EA91722E
    ssh_key : NoneType
    None
    subnets : list
    [Subnet:subnet-CFFF46E0]
    subnets_prefix : int
    24
    template_id : str
    cmi-6168072A
    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/tmpacb9jb9g.pub', Instance:i-2208D900), ('/tmp/tmpswlxdkmt.pub', Instance:i-E0348940)]
    threads : int
    2
    log_errors : bool
    False
    check_errors : bool
    True
    1. for thread in thread_pool:
    2. join_thread(thread)
    3. if check_errors:
    4. for result in results:
    5. if isinstance(result[1], Exception):
    6. raise result[1]
    7. results.sort(key=lambda result: result[0])
    8. return [result[1] for result in results]

    Locals

    i : int
    1
    q : Queue
    <queue.Queue object at 0x7fe3ff5a68d0>
    result : tuple
    (1, TimeoutException('Timed out.'))
    results : list
    [(1, TimeoutException('Timed out.')), (0, TimeoutException('Timed out.'))]
    task : tuple
    (1, ('/tmp/tmpswlxdkmt.pub', Instance:i-E0348940))
    thread : Thread
    <Thread(Thread-127, stopped 140616935655168)>
    thread_pool : list
    [<Thread(Thread-126, stopped 140617180444416)>, <Thread(Thread-127, stopped 140616935655168)>]

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

    q : Queue
    <queue.Queue object at 0x7fe3ff5a68d0>
    1. task_id, element = q.get(False)
    2. except queue.Empty:
    3. break
    4. try:
    5. result = func(element)
    6. except Exception as e:
    7. if log_errors:
    8. logger.exception("Parallelize of %s for %s failed.", func, element)
    9. result = e

    Locals

    element : tuple
    ('/tmp/tmpswlxdkmt.pub', Instance:i-E0348940)
    log_errors : bool
    False
    result : TimeoutException
    Timed out.
    results : list
    [(1, TimeoutException('Timed out.')), (0, TimeoutException('Timed out.'))]
    task_id : int
    1

    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/tmpswlxdkmt.pub', Instance:i-E0348940)
    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/tmpswlxdkmt.pub
    instance : Instance
    Instance:i-E0348940
    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 0x7fe3ef606c20>
    *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 0x7fe3ef606c20>
    *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
    1708645789.643473
    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:50:01
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