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/c2tests/ec2/instanceoperations.py in test_attach_network_interface (arguments ▶)
- # NOTE: Wait for instance to become accessible
- instance.update()
- utils.wait_for_instance_states(
- self.conn, [instance.id], [constants.INSTANCE_STATE_RUNNING])
- utils.ping(instance.ip_address)
- detach_interfaces([switch_interface, subnet_interface])
- # NOTE: 5 attaches of single interface, only one must be succeed.
/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"