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 0x7fe3fd9829d0>
    test_case : ReservedInstanceOperations
    test_network_hotplug_complex (c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations)
    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 : ReservedInstanceOperations
    test_network_hotplug_complex (c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations)
    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 0x7fe3fd9829d0>
    testMethod : method
    <bound method _InstanceOperations.test_network_hotplug_complex of <c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations testMethod=test_network_hotplug_complex>>

    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/instanceoperations.py in test_network_hotplug_complex (arguments )

    self : ReservedInstanceOperations
    test_network_hotplug_complex (c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations)
    1. switch1 = self.create_virtual_switch(availability_zone=instance.placement)
    2. switch2 = self.create_virtual_switch(availability_zone=instance.placement)
    3. interface1 = self.create_network_interface(switch1.id)
    4. interface2 = self.create_network_interface(switch2.id)
    5. utils.long_ssh_test(keypath, instance)
    6. self.report("Attaching switch1...")
    7. interface1.attach(instance.id, 1)
    8. instance.update()

    Locals

    instance : Instance
    Instance:i-82CB90C0
    interface1 : NetworkInterface
    NetworkInterface:eni-11598C60
    interface2 : NetworkInterface
    NetworkInterface:eni-2E96CFE0
    keypath : str
    /tmp/tmp6xhgd4bx.pub
    switch1 : VirtualSwitch
    VirtualSwitch:Test switch 1ece9e40-1f9f-4090-9c15-0515cc098b34
    switch2 : VirtualSwitch
    VirtualSwitch:Test switch 0bf64238-90bd-4f44-a5e6-6fd89b29647c

    Globals

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

    keypath : str
    /tmp/tmp6xhgd4bx.pub
    instance : Instance
    Instance:i-82CB90C0
    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'}]
  5. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments )

    func : function
    <function long_ssh_test.<locals>.<lambda> at 0x7fe3fd9d4710>
    *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'}]
  6. /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 0x7fe3fd9d4710>
    *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
    1708634543.7245946
    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:42:39
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