Timed out. search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
- outcome.expecting_failure = False
- with outcome.testPartExecutor(self):
- self.tearDown()
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/securitygroups.py in test_default_sg_via_eip (arguments ▶)
- template_id = self.register_template(snapshot_id=snapshot.id)
- key, instance = self.run_instance_from_template(template_id=template_id,
- update_instance=False,
- security_group_ids=[group.id])
- utils.long_ssh_test(key, instance)
- utils.ping(instance.ip_address, retcode=0)
- group.revoke(**utils.RULES[1]) # icmp rule
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in long_ssh_test (arguments ▶)
- def long_ssh_test(keypath, instance):
- """Getting instance id frome metadata server w/retries"""
- wait_long(lambda: ssh_test(instance.ip_address, keypath) == instance.id)
- def check_ssh(instance):
- """Helper for parallel using of 'long_ssh_test'."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments ▶)
- def wait_long(func, *args, **kwargs):
- """Fail unless func return success within the long timeout"""
- return wait(5 * constants.MINUTE_SECONDS, func, *args, **kwargs)
- def wait_long_enough(func, *args, **kwargs):
- """Fail unless func return success within the enough long timeout."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait (arguments ▶)
- result = func(*args, **kwargs)
- if result:
- return result
- time.sleep(min(timeout, 0.1))
- raise exceptions.TimeoutException()
- def wait_short(func, *args, **kwargs):
- """Fail unless func return success within the timeout"""