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 0x7fe3ef55a7d0>
    test_case : NetworkAcls
    test_multi_acl_rules (c2tests.vpc.acls.NetworkAcls)
    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 : NetworkAcls
    test_multi_acl_rules (c2tests.vpc.acls.NetworkAcls)
    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 0x7fe3ef55a7d0>
    testMethod : method
    <bound method NetworkAcls.test_multi_acl_rules of <c2tests.vpc.acls.NetworkAcls testMethod=test_multi_acl_rules>>

    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/acls.py in test_multi_acl_rules (arguments )

    self : NetworkAcls
    test_multi_acl_rules (c2tests.vpc.acls.NetworkAcls)
    1. for i, rule in enumerate(rules):
    2. if i != excluded_rule:
    3. self.vpcconn.create_network_acl_entry(**rule)
    4. self.assertFalse(
    5. utils.ping_between_instances(instance0, instance1, public_ip=True))
    6. for i, rule in enumerate(rules):
    7. if i != excluded_rule:
    8. self.vpcconn.delete_network_acl_entry(

    Locals

    acl : NetworkAcl
    NetworkAcl:acl-16D0E9A6
    acl0 : NetworkAcl
    NetworkAcl:acl-B36D94D5
    acl1 : NetworkAcl
    NetworkAcl:acl-16D0E9A6
    excluded_rule : int
    0
    i : int
    3
    icmp_rule_egress0 : dict
    {'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': True, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-B36D94D5'}
    icmp_rule_egress1 : dict
    {'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': True, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-16D0E9A6'}
    icmp_rule_ingress0 : dict
    {'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': False, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-B36D94D5'}
    icmp_rule_ingress1 : dict
    {'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': False, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-16D0E9A6'}
    instance0 : tuple
    ('/tmp/tmpxrwpqhe7.pub', Instance:i-CEC9E880)
    instance1 : tuple
    ('/tmp/tmpiy1w6ge5.pub', Instance:i-5D2FC980)
    rule : dict
    {'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': False, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-16D0E9A6'}
    rules : tuple
    ({'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': True, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-B36D94D5'}, {'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': False, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-B36D94D5'}, {'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': True, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-16D0E9A6'}, {'protocol': 1, 'rule_number': 50, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'egress': False, 'icmp_code': -1, 'icmp_type': -1, 'network_acl_id': 'acl-16D0E9A6'})
    ssh_egress_rule : dict
    {'protocol': 6, 'rule_number': 10, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'port_range_from': 1, 'port_range_to': 65535, 'egress': True, 'network_acl_id': 'acl-16D0E9A6'}
    ssh_ingress_rule : dict
    {'protocol': 6, 'rule_number': 10, 'rule_action': 'allow', 'cidr_block': '0.0.0.0/0', 'port_range_from': 1, 'port_range_to': 65535, 'egress': False, 'network_acl_id': 'acl-16D0E9A6'}
    subnet0 : str
    subnet-0EB64AE0
    subnet1 : str
    subnet-81331BC0

    Globals

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

    first_instance : tuple
    ('/tmp/tmpxrwpqhe7.pub', Instance:i-CEC9E880)
    second_instance : tuple
    ('/tmp/tmpiy1w6ge5.pub', Instance:i-5D2FC980)
    ping_count : int
    2
    return_code : int
    0
    public_ip : bool
    True
    retries : int
    3
    1. for instance in [first_instance[1], second_instance[1]]:
    2. instance.update()
    3. common.parallelize(check_ssh,
    4. [first_instance, second_instance],
    5. threads=2, check_errors=True)
    6. remote_args = "/bin/ping -c {0} -w {0} -q {1} > /dev/null; echo $?"
    7. target_ip = second_instance[1].ip_address if public_ip\

    Locals

    instance : Instance
    Instance:i-5D2FC980

    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'}]
  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/tmpxrwpqhe7.pub', Instance:i-CEC9E880), ('/tmp/tmpiy1w6ge5.pub', Instance:i-5D2FC980)]
    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 0x7fe3fc393350>
    result : tuple
    (0, TimeoutException('Timed out.'))
    results : list
    [(0, TimeoutException('Timed out.')), (1, TimeoutException('Timed out.'))]
    task : tuple
    (1, ('/tmp/tmpiy1w6ge5.pub', Instance:i-5D2FC980))
    thread : Thread
    <Thread(Thread-103, stopped 140616935655168)>
    thread_pool : list
    [<Thread(Thread-102, stopped 140616944047872)>, <Thread(Thread-103, 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 0x7fe3fc393350>
    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/tmpxrwpqhe7.pub', Instance:i-CEC9E880)
    log_errors : bool
    False
    result : TimeoutException
    Timed out.
    results : list
    [(0, TimeoutException('Timed out.')), (1, TimeoutException('Timed out.'))]
    task_id : int
    0

    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/tmpxrwpqhe7.pub', Instance:i-CEC9E880)
    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/tmpxrwpqhe7.pub
    instance : Instance
    Instance:i-CEC9E880
    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 0x7fe3fc3767a0>
    *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 0x7fe3fc3767a0>
    *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
    1708641839.2720604
    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 01:44:15
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