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 0x7fb03a9c7610>
    test_case : ReservedInstanceOperations
    test_replace_primary_network_interface (c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations)
    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 0x7fb0513c8fd0>
    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 : ReservedInstanceOperations
    test_replace_primary_network_interface (c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations)
    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 0x7fb03a9c7610>
    testMethod : method
    <bound method _InstanceOperations.test_replace_primary_network_interface of <c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations testMethod=test_replace_primary_network_interface>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    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/c2tests/ec2/instanceoperations.py in test_replace_primary_network_interface (arguments )

    self : ReservedInstanceOperations
    test_replace_primary_network_interface (c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations)
    1. interface1 = self.create_network_interface(subnet.id)
    2. interface2 = self.create_network_interface(subnet.id)
    3. address = self.allocate_address()
    4. address.associate(network_interface_id=interface1.id)
    5. utils.ping(subnet_instance.ip_address)
    6. self.conn.stop_instances([subnet_instance.id, switch_instance.id], force=True)
    7. utils.wait_for_instance_states(self.conn,
    8. [subnet_instance.id, switch_instance.id],

    Locals

    address : Address
    Address:10.255.40.102
    interface1 : NetworkInterface
    NetworkInterface:eni-D70EBDE0
    interface2 : NetworkInterface
    NetworkInterface:eni-AF036FC0
    subnet : Subnet
    Subnet:subnet-5F67AC80
    subnet_instance : Instance
    Instance:i-993C89A0
    switch_instance : Instance
    Instance:i-0F297E80

    Globals

  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in ping (arguments )

    ip : str
    10.255.40.100
    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
    1713565665.020189
    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-04-20 01:32:56
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