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 0x7f811138ccd0>
    test_case : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    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 0x7f8128eeafb0>
    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 : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    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 0x7f811138ccd0>
    testMethod : method
    <bound method SecurityGroups.test_working_sg_rules of <c2tests.ec2.securitygroups.SecurityGroups testMethod=test_working_sg_rules>>

    Globals

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

    self : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    1. class SecurityGroups(c2tests.EC2TestCase):
    2. """Tests various operations on security groups."""
    3. def setUp(self):
    4. super(SecurityGroups, self).setUp()
    5. self.__GROUP_NUM = 10
    6. self.vpc_id = self.default_vpc().id
    7. def test_create_group(self):
  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in setUp (arguments )

    self : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    1. self.entities[resources.VPC_VPCS] = self.get_all_vpcs()
    2. self.entities[resources.VPC_DHCP_OPTIONS] = self.get_all_dhcp_options()
    3. def setUp(self):
    4. self._default_vpcs = dict([(i, None) for i in profile.AVAILABLE_PROJECTS])
    5. super(VPCTestCase, self).setUp()
    6. zones = self.get_all_zones()
    7. def _setup():
    8. # ensure that default VPC exists

    Locals

    Globals

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

    self : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    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 0x7f811b6a9410>
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in setUp (arguments )

    self : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    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 0x7f811b6a9410>
  7. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in cleanup (arguments )

    self : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    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 0x7f811b6a9410>
  8. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in _cleanup (arguments )

    self : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    1. _setup()
    2. with self.switch_project(profile.P2_PROJECT):
    3. _setup()
    4. def _cleanup(self):
    5. super(VPCTestCase, self)._cleanup()
    6. self._delete_vpn_connections()
    7. self._delete_subnets()
    8. self._delete_route_tables()

    Locals

    Globals

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

    self : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    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 0x7f811b6a9410>
  10. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in _delete_instances (arguments )

    self : SecurityGroups
    test_working_sg_rules (c2tests.ec2.securitygroups.SecurityGroups)
    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-865514C1
    instances : list
    [Instance:i-865514C1]

    Globals

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

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7f8119ca1150>
    instance_ids : list
    ['i-865514C1']
    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'}]
  12. /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 0x7f8112678ef0>
    *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
    1693548178.3468945
    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-09-01 09:02:58
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