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 0x7fe40733b150>
    test_case : ReservedInstanceOperations
    test_detach_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_detach_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 0x7fe40733b150>
    testMethod : method
    <bound method _InstanceOperations.test_detach_network_interface of <c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations testMethod=test_detach_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_detach_network_interface (arguments )

    self : ReservedInstanceOperations
    test_detach_network_interface (c2tests.ec2.reservedinstanceoperations.ReservedInstanceOperations)
    1. ]
    2. switch = self.create_virtual_switch(availability_zone=self.ec2zone)
    3. interface = self.create_network_interface(switch.id)
    4. keypath, instance = self.run_instance_from_template(placement=self.ec2zone)
    5. utils.ping(instance.ip_address)
    6. interface.attach(instance.id, 1)
    7. interface.update()
    8. interface.detach()

    Locals

    instance : Instance
    Instance:i-E71ACD20
    interface : NetworkInterface
    NetworkInterface:eni-5220EF60
    interfaces : list
    [NetworkInterface:eni-6EDC1C60, NetworkInterface:eni-C75789E0, NetworkInterface:eni-B3C1CB80, NetworkInterface:eni-9F417C40, NetworkInterface:eni-57C76460]
    keypath : str
    /tmp/tmpqz7aqxqq.pub
    switch : VirtualSwitch
    VirtualSwitch:Test switch 57acbe53-4945-4167-87ce-15c6f2a05061
    switches : list
    [VirtualSwitch:Test switch 86dbb47e-63e1-4d0f-8af1-b5a33d33a943, VirtualSwitch:Test switch 02370e2d-a512-42cc-a7e2-35ecbb461045, VirtualSwitch:Test switch d7eba9fc-1a07-440a-8745-4c090d0a53fb, VirtualSwitch:Test switch f9eea8a4-85ec-4c70-9f9f-ed949637fdca, VirtualSwitch:Test switch ad982ff0-40ba-4632-b557-05f305948da9]

    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
    1708633981.3061554
    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:33:14
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