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 0x7fe3fc91cc50>
    test_case : NetworkInterfaces
    test_modify_SubnetInterface_attached (c2tests.ec2.network_interfaces.NetworkInterfaces)
    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 : NetworkInterfaces
    test_modify_SubnetInterface_attached (c2tests.ec2.network_interfaces.NetworkInterfaces)
    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 0x7fe3fc91cc50>
    testMethod : method
    <bound method NetworkInterfaces.test_modify_SubnetInterface_attached of <c2tests.ec2.network_interfaces.NetworkInterfaces testMethod=test_modify_SubnetInterface_attached>>

    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/ec2/network_interfaces.py in test_modify_SubnetInterface_attached (arguments )

    self : NetworkInterfaces
    test_modify_SubnetInterface_attached (c2tests.ec2.network_interfaces.NetworkInterfaces)
    1. self.assert_error("SecurityGroupsPerInterfaceLimitExceeded",
    2. self.vpcconn.modify_network_interface_attribute,
    3. to_interface.id, "groupset", [group_with_icmp.id] * 6)
    4. self.assertFalse(
    5. utils.ping_between_instances((key1, from_instance), (key2, to_instance)))
    6. self.vpcconn.modify_network_interface_attribute(
    7. to_interface.id, "groupset", [group_with_icmp.id])

    Locals

    from_instance : Instance
    Instance:i-4BD76320
    group_with_icmp : SecurityGroup
    SecurityGroup:Test group 165b6764-ffc1-4f89-bdfc-5043b2775779
    group_without_icmp : SecurityGroup
    SecurityGroup:Test group bc27980f-3780-47d5-ab71-50684d7b311f
    key1 : str
    /tmp/tmpws39nrmv.pub
    key2 : str
    /tmp/tmpk0x6p2il.pub
    snapshot : Snapshot
    Snapshot:snap-EA91722E
    template_id : str
    cmi-2754BE92
    to_instance : Instance
    Instance:i-D2C8B880
    to_interface : NetworkInterface
    NetworkInterface:eni-E4AED800

    Globals

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

    first_instance : tuple
    ('/tmp/tmpws39nrmv.pub', Instance:i-4BD76320)
    second_instance : tuple
    ('/tmp/tmpk0x6p2il.pub', Instance:i-D2C8B880)
    ping_count : int
    2
    return_code : int
    0
    public_ip : bool
    False
    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-D2C8B880

    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/tmpws39nrmv.pub', Instance:i-4BD76320), ('/tmp/tmpk0x6p2il.pub', Instance:i-D2C8B880)]
    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 0x7fe3fc91b290>
    result : tuple
    (1, TimeoutException('Timed out.'))
    results : list
    [(1, TimeoutException('Timed out.')), (0, TimeoutException('Timed out.'))]
    task : tuple
    (1, ('/tmp/tmpk0x6p2il.pub', Instance:i-D2C8B880))
    thread : Thread
    <Thread(Thread-78, stopped 140617180444416)>
    thread_pool : list
    [<Thread(Thread-77, stopped 140616952440576)>, <Thread(Thread-78, stopped 140617180444416)>]

    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 0x7fe3fc91b290>
    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/tmpk0x6p2il.pub', Instance:i-D2C8B880)
    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/tmpk0x6p2il.pub', Instance:i-D2C8B880)
    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/tmpk0x6p2il.pub
    instance : Instance
    Instance:i-D2C8B880
    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 0x7fe3fd261320>
    *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 0x7fe3fd261320>
    *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
    1708633546.327012
    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 23:26: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