ping: Timed out while waiting return code: 0 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/parameterized/parameterized.py in standalone_func (arguments ▶)
- @classmethod
- def param_as_standalone_func(cls, p, func, name):
- @wraps(func)
- def standalone_func(*a):
- return func(*(a + p.args), **p.kwargs)
- standalone_func.__name__ = name
- # place_as is used by py.test to determine what source file should be
- # used for this test.
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/complex.py in test_multicomplex (arguments ▶)
- utils.wait_for_instance_states(
- self.conn, instance_ids, [constants.INSTANCE_STATE_RUNNING])
- for address, instance_id in zip(addresses, instance_ids):
- self.log.warning("Associating address %s with instance %s",
- address.public_ip, instance_id)
- address.associate(instance_id)
- common.parallelize(utils.ping, [addr.public_ip for addr in addresses],
- threads=len(addresses), check_errors=True)
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/common.py in parallelize (arguments ▶)
- for thread in thread_pool:
- join_thread(thread)
- if check_errors:
- for result in results:
- if isinstance(result[1], Exception):
- raise result[1]
- results.sort(key=lambda result: result[0])
- return [result[1] for result in results]
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/common.py in worker (arguments ▶)
- task_id, element = q.get(False)
- except queue.Empty:
- break
- try:
- result = func(element)
- except Exception as e:
- if log_errors:
- logger.exception("Parallelize of %s for %s failed.", func, element)
- result = e
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in ping (arguments ▶)
- while True:
- time_left = int(end_time - time.time())
- if time_left < 1:
- raise Error(
- f"ping: Timed out while waiting return code: {retcode}"
- )
- timeout_option = "-t" if sys.platform == "darwin" else "-w"