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/instanceoperations.py in test_network_hotplug_complex (arguments ▶)
- switch1 = self.create_virtual_switch(availability_zone=instance.placement)
- switch2 = self.create_virtual_switch(availability_zone=instance.placement)
- interface1 = self.create_network_interface(switch1.id)
- interface2 = self.create_network_interface(switch2.id)
- utils.long_ssh_test(keypath, instance)
- self.report("Attaching switch1...")
- interface1.attach(instance.id, 1)
- instance.update()
/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"""