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 0x7fe3fd4faf50>
    test_case : ReservedInstanceOperations
    test_attach_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 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 : ReservedInstanceOperations
    test_attach_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 0x7fe3fd4faf50>
    testMethod : method
    <bound method _InstanceOperations.test_attach_network_interface of <c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations testMethod=test_attach_network_interface>>

    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/c2tests/ec2/instanceoperations.py in test_attach_network_interface (arguments )

    self : ReservedInstanceOperations
    test_attach_network_interface (c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations)
    1. # NOTE: Wait for instance to become accessible
    2. instance.update()
    3. utils.wait_for_instance_states(
    4. self.conn, [instance.id], [constants.INSTANCE_STATE_RUNNING])
    5. utils.ping(instance.ip_address)
    6. detach_interfaces([switch_interface, subnet_interface])
    7. # NOTE: 5 attaches of single interface, only one must be succeed.

    Locals

    _ : str
    /tmp/tmp7ar82nvw.pub
    instance : Instance
    Instance:i-070E9F20
    subnet : Subnet
    Subnet:subnet-D3A89C80
    subnet_interface : NetworkInterface
    NetworkInterface:eni-B5111100
    subnet_interfaces : list
    [NetworkInterface:eni-95CF74E0, NetworkInterface:eni-97F85680, NetworkInterface:eni-BF870A20, NetworkInterface:eni-ADEDAE20, NetworkInterface:eni-C0E1BF40]
    subnets : list
    [Subnet:subnet-99FAD080, Subnet:subnet-57AEF7A0, Subnet:subnet-DB9656A0, Subnet:subnet-3697D520, Subnet:subnet-2AD96880]
    switch : VirtualSwitch
    VirtualSwitch:Test switch c288a140-2bf1-4ee0-9228-b25fba22e0ca
    switch_interface : NetworkInterface
    NetworkInterface:eni-72441400
    switch_interfaces : list
    [NetworkInterface:eni-26819DA0, NetworkInterface:eni-7DF18040, NetworkInterface:eni-E3DF7740, NetworkInterface:eni-F47307A0, NetworkInterface:eni-E069C6E0]
    switches : list
    [VirtualSwitch:Test switch 5e24d891-f78f-48d7-b9c1-e66a39930e1b, VirtualSwitch:Test switch 5f9af989-7a0f-4db6-8b76-c888f1ac8d4e, VirtualSwitch:Test switch cb885aa4-c970-4960-a6b3-dca94da15271, VirtualSwitch:Test switch c0c1feaf-a234-4a7c-8d64-0011ce0ec5fb, VirtualSwitch:Test switch b5061764-df50-4d9d-bae4-75b8244466e4]
    vpc_id : str
    vpc-A9BF4A42

    Globals

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

    ip : str
    10.255.40.102
    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
    1708633836.7433014
    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 23:30:52
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