Error

ping: Timed out while waiting return code: 0 search by Google

args : tuple
('ping: Timed out while waiting return code: 0',)

Traceback

  1. /usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments )

    self : _Outcome
    <unittest.case._Outcome object at 0x7fe3fd215b50>
    test_case : Complex
    test_multicomplex_standard (c2tests.ec2.complex.Complex)
    isTest : bool
    True
    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 0x7fe415310fc0>
    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 : Complex
    test_multicomplex_standard (c2tests.ec2.complex.Complex)
    result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    1. with outcome.testPartExecutor(self):
    2. self.setUp()
    3. if outcome.success:
    4. outcome.expecting_failure = expecting_failure
    5. with outcome.testPartExecutor(self, isTest=True):
    6. testMethod()
    7. outcome.expecting_failure = False
    8. with outcome.testPartExecutor(self):
    9. self.tearDown()

    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 0x7fe3fd215b50>
    testMethod : method
    <bound method Complex.test_multicomplex of <c2tests.ec2.complex.Complex testMethod=test_multicomplex_standard>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fe415310fc0>
    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/parameterized/parameterized.py in standalone_func (arguments )

    *a : tuple
    (<c2tests.ec2.complex.Complex testMethod=test_multicomplex_standard>,)
    1. @classmethod
    2. def param_as_standalone_func(cls, p, func, name):
    3. @wraps(func)
    4. def standalone_func(*a):
    5. return func(*(a + p.args), **p.kwargs)
    6. standalone_func.__name__ = name
    7. # place_as is used by py.test to determine what source file should be
    8. # used for this test.

    Locals

    p : param
    param(*('standard',), **{})

    Globals

    PY2 : bool
    False
    PY3 : bool
    True
    string_types : tuple
    (<class 'str'>,)
  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/complex.py in test_multicomplex (arguments )

    self : Complex
    test_multicomplex_standard (c2tests.ec2.complex.Complex)
    volume_type : str
    standard
    1. utils.wait_for_instance_states(
    2. self.conn, instance_ids, [constants.INSTANCE_STATE_RUNNING])
    3. for address, instance_id in zip(addresses, instance_ids):
    4. self.log.warning("Associating address %s with instance %s",
    5. address.public_ip, instance_id)
    6. address.associate(instance_id)
    7. common.parallelize(utils.ping, [addr.public_ip for addr in addresses],
    8. threads=len(addresses), check_errors=True)

    Locals

    _ : int
    0
    address : Address
    Address:10.255.40.103
    addresses : list
    [Address:10.255.40.101, Address:10.255.40.103]
    group : SecurityGroup
    SecurityGroup:Test group aa0856fc-fa86-4b53-82aa-f8342e1cf6f6
    instance : Instance
    Instance:i-904E6E00
    instance_id : str
    i-904E6E00
    instance_ids : list
    ['i-3F55C460', 'i-904E6E00']
    keypair : KeyPair
    KeyPair:sMnEdFy
    rule : dict
    {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}
    snapshot : Snapshot
    Snapshot:snap-EA91722E
    template_id : str
    cmi-11E2953B

    Globals

    INS_MAX : int
    1
    SG_MAX : int
    2
  5. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/common.py in parallelize (arguments )

    func : function
    <function ping at 0x7fe4061c65f0>
    data : list
    ['10.255.40.101', '10.255.40.103']
    threads : int
    2
    log_errors : bool
    False
    check_errors : bool
    True
    1. for thread in thread_pool:
    2. join_thread(thread)
    3. if check_errors:
    4. for result in results:
    5. if isinstance(result[1], Exception):
    6. raise result[1]
    7. results.sort(key=lambda result: result[0])
    8. return [result[1] for result in results]

    Locals

    i : int
    1
    q : Queue
    <queue.Queue object at 0x7fe3fda98290>
    result : tuple
    (1, Error('ping: Timed out while waiting return code: 0'))
    results : list
    [(1, Error('ping: Timed out while waiting return code: 0')), (0, Error('ping: Timed out while waiting return code: 0'))]
    task : tuple
    (1, '10.255.40.103')
    thread : Thread
    <Thread(Thread-67, stopped 140616952440576)>
    thread_pool : list
    [<Thread(Thread-66, stopped 140617180444416)>, <Thread(Thread-67, stopped 140616952440576)>]

    Globals

    AVAILABLE_MARKERS : list
    ['exclude']
    BASE_OBJECT_TYPES : tuple
    (<class 'str'>, <class 'int'>, <class 'bool'>)
    EXCLUDE_ATTRIBUTE : str
    __c2tests_exclude__
    EXCLUDE_MARKER : str
    exclude
    IMAGES : dict
    {'cirros-0.3.4-x86_64-disk.raw': '/root/c2tests/.venv/var/lib/c2tests/images/cirros-0.3.4-x86_64-disk.raw.bz2', 'openwrt.img': '/root/c2tests/.venv/var/lib/c2tests/images/openwrt.img.bz2', 'tiny_core.vmdk': '/root/c2tests/.venv/var/lib/c2tests/images/tiny_core.vmdk', 'empty.ova': '/root/c2tests/.venv/var/lib/c2tests/images/empty.ova', 'tiny_core.ova': '/root/c2tests/.venv/var/lib/c2tests/images/tiny_core.ova'}
    IMAGES_BUCKET_PREFIX : str
    c2tests-images
    logger : RootLogger
    <RootLogger root (DEBUG)>
    mark : _Mark
    <c2tests.common._Mark object at 0x7fe406d930d0>
    MARKER_ATTRIBUTE : str
    __c2tests_marks__
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/common.py in worker (arguments )

    q : Queue
    <queue.Queue object at 0x7fe3fda98290>
    1. task_id, element = q.get(False)
    2. except queue.Empty:
    3. break
    4. try:
    5. result = func(element)
    6. except Exception as e:
    7. if log_errors:
    8. logger.exception("Parallelize of %s for %s failed.", func, element)
    9. result = e

    Locals

    element : str
    10.255.40.103
    log_errors : bool
    False
    result : Error
    ping: Timed out while waiting return code: 0
    results : list
    [(1, Error('ping: Timed out while waiting return code: 0')), (0, Error('ping: Timed out while waiting return code: 0'))]
    task_id : int
    1

    Globals

    AVAILABLE_MARKERS : list
    ['exclude']
    BASE_OBJECT_TYPES : tuple
    (<class 'str'>, <class 'int'>, <class 'bool'>)
    EXCLUDE_ATTRIBUTE : str
    __c2tests_exclude__
    EXCLUDE_MARKER : str
    exclude
    IMAGES : dict
    {'cirros-0.3.4-x86_64-disk.raw': '/root/c2tests/.venv/var/lib/c2tests/images/cirros-0.3.4-x86_64-disk.raw.bz2', 'openwrt.img': '/root/c2tests/.venv/var/lib/c2tests/images/openwrt.img.bz2', 'tiny_core.vmdk': '/root/c2tests/.venv/var/lib/c2tests/images/tiny_core.vmdk', 'empty.ova': '/root/c2tests/.venv/var/lib/c2tests/images/empty.ova', 'tiny_core.ova': '/root/c2tests/.venv/var/lib/c2tests/images/tiny_core.ova'}
    IMAGES_BUCKET_PREFIX : str
    c2tests-images
    logger : RootLogger
    <RootLogger root (DEBUG)>
    mark : _Mark
    <c2tests.common._Mark object at 0x7fe406d930d0>
    MARKER_ATTRIBUTE : str
    __c2tests_marks__
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
  7. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in ping (arguments )

    ip : str
    10.255.40.103
    retcode : int
    0
    timeout : int
    60
    1. while True:
    2. time_left = int(end_time - time.time())
    3. if time_left < 1:
    4. raise Error(
    5. f"ping: Timed out while waiting return code: {retcode}"
    6. )
    7. timeout_option = "-t" if sys.platform == "darwin" else "-w"

    Locals

    _ : str
     
    end_time : float
    1708625798.686444
    ping : BoundCommand
    /bin/ping -i 0.2 -W 1 -c 5 -q
    rc : int
    1
    time_left : int
    0
    timeout_option : str
    -w

    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
2024-02-22 21:16:50
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
  5. s3
  6. vpc