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 0x7f0c6c31b490>
    test_case : Billing
    test_get_tariff (c2tests.ec2.billing.Billing)
    isTest : bool
    False
    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 0x7f0c7ebcffb0>
    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 : Billing
    test_get_tariff (c2tests.ec2.billing.Billing)
    result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    1. outcome = _Outcome(result)
    2. try:
    3. self._outcome = outcome
    4. with outcome.testPartExecutor(self):
    5. self.setUp()
    6. if outcome.success:
    7. outcome.expecting_failure = expecting_failure
    8. with outcome.testPartExecutor(self, isTest=True):
    9. testMethod()

    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 0x7f0c6c31b490>
    testMethod : method
    <bound method Billing.test_get_tariff of <c2tests.ec2.billing.Billing testMethod=test_get_tariff>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7f0c7ebcffb0>
    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/__init__.py in setUp (arguments )

    self : Billing
    test_get_tariff (c2tests.ec2.billing.Billing)
    1. """
    2. return self.profile.get_connection(profile.EC2Connection)
    3. def setUp(self):
    4. super(_EC2TestCase, self).setUp()
    5. self._default_acls = {i: None for i in profile.AVAILABLE_PROJECTS}
    6. self._default_groups = {i: None for i in profile.AVAILABLE_PROJECTS}
    7. self._default_subnets = {i: {} for i in profile.AVAILABLE_PROJECTS}
    8. self._default_keypair = None

    Locals

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f0c7138e610>
  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in setUp (arguments )

    self : Billing
    test_get_tariff (c2tests.ec2.billing.Billing)
    1. self.log.warning(message, *args, **kwargs)
    2. def setUp(self):
    3. self.report("Cleaning up before the test")
    4. self.cleanup()
    5. self.report("Cleaning up finished")
    6. self.log.warning("Running testcase: {0}".format(self._testMethodName))
    7. def tearDown(self):

    Locals

    Globals

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

    self : Billing
    test_get_tariff (c2tests.ec2.billing.Billing)
    projects : NoneType
    None
    1. for project in projects or profile.AVAILABLE_PROJECTS:
    2. with self.switch_project(project):
    3. self.report("Filling up {0} project entities...".format(project))
    4. self._fill_entities()
    5. self.report("Cleaning up {0} project entities...".format(project))
    6. self._cleanup()
    7. def cleanup_prod(self):
    8. """Cleans up all data created by the test in production environment."""

    Locals

    project : str
    p1

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f0c7138e610>
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in _cleanup (arguments )

    self : Billing
    test_get_tariff (c2tests.ec2.billing.Billing)
    1. def _cleanup(self):
    2. super(_EC2TestCase, self)._cleanup()
    3. self._delete_addresses()
    4. self._delete_instances()
    5. self._delete_network_interfaces()
    6. self._delete_placement_groups()
    7. self._delete_security_groups()
    8. self._detach_external_networks()

    Locals

    Globals

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

    self : Billing
    test_get_tariff (c2tests.ec2.billing.Billing)
    1. [instance.id],
    2. [
    3. constants.INSTANCE_STATE_RUNNING,
    4. constants.INSTANCE_STATE_STOPPED,
    5. ],
    6. check_for_errors=False,
    7. )
    8. try:
    9. self.log.warning("1. Deleting: {0}".format(instance))

    Locals

    instance : Instance
    Instance:i-648D4DC0
    instances : list
    [Instance:i-648D4DC0]

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7f0c7138e610>
  8. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_for_instance_states (arguments )

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7f0c722e7390>
    instance_ids : list
    ['i-648D4DC0']
    states : list
    ['running', 'stopped']
    check_for_errors : bool
    False
    1. raise Error("Instance {0} has disappeared.",
    2. set(instance_ids).difference(got_ids).pop())
    3. return True
    4. wait(10 * constants.MINUTE_SECONDS, check_state)
    5. def wait_for_extnet_attached(conn, *extnets):
    6. """Wait for External Network attached state."""

    Locals

    aws_error_states : list
    ['error', 'failed', 'crashed']
    aws_states : list
    ['running', 'stopped']

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

    timeout : int
    600
    func : function
    <function wait_for_instance_states.<locals>.check_state at 0x7f0c6c0ad5f0>
    *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
    1693324953.7269964
    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
2023-08-29 19:02:33
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